import PropTypes from 'prop-types'; import { fallbackImage, skeleton } from '../../helpers/utils'; import LazyImage from '../lazy-image'; const AvatarCard = ({ profile, loading, avatarRing, resume }) => { return (
{loading || !profile ? (
{skeleton({ width: 'w-full', height: 'h-full', shape: '', })}
) : (
{ }
)}
{loading || !profile ? ( skeleton({ width: 'w-48', height: 'h-8' }) ) : ( {profile.name} )}
{loading || !profile ? skeleton({ width: 'w-48', height: 'h-5' }) : profile.bio}
{resume?.fileUrl && (loading ? (
{skeleton({ width: 'w-40', height: 'h-8' })}
) : ( Download Resume ))}
); }; AvatarCard.propTypes = { profile: PropTypes.object, loading: PropTypes.bool.isRequired, avatarRing: PropTypes.bool.isRequired, resume: PropTypes.shape({ fileUrl: PropTypes.string, }), }; export default AvatarCard;