import { Email, Phone, Public, Room } from '@mui/icons-material'; import isEmpty from 'lodash/isEmpty'; import React from 'react'; import { useAppSelector } from '@/store/hooks'; import DataDisplay from '@/templates/shared/DataDisplay'; import getProfileIcon from '@/utils/getProfileIcon'; import { addHttp, formatLocation, getPhotoClassNames } from '@/utils/template'; const Masthead = () => { const { name, photo, email, phone, website, headline, location, profiles } = useAppSelector( (state) => state.resume.basics ); return (
{photo.visible && !isEmpty(photo.url) && ( {name} )}

{name}

{headline}

} link={`mailto:${email}`}> {email} } link={`tel:${phone}`}> {phone} } link={addHttp(website)}> {website} }>{formatLocation(location)} {profiles.map(({ id, username, network, url }) => ( {username} ))}
); }; export default Masthead;