import React from 'react'; import PropTypes from 'prop-types'; import IconFromUserType from './IconFromUserType'; const Result = ({ user }) => (
{user.value}
); Result.propTypes = { user: PropTypes.shape({ value: PropTypes.string.isRequired, type: PropTypes.string.isRequired, }).isRequired, }; export default Result;