import React from 'react'; import PropTypes from 'prop-types'; const ProfileTop = ({ profile: { status, company, location, website, social, user: { name, avatar } } }) => { return (

{name}

{status} {company ? at {company} : null}

{location ? {location} : null}

{website ? ( ) : null} {social ? Object.entries(social) .filter(([_, value]) => value) .map(([key, value]) => ( )) : null}
); }; ProfileTop.propTypes = { profile: PropTypes.object.isRequired }; export default ProfileTop;