import PropTypes from 'prop-types'; import { fallbackImage, skeleton } from '../../helpers/utils'; import LazyImage from '../lazy-image'; const AvatarCard = ({ profile, loading, avatarRing }) => { 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}
); }; AvatarCard.propTypes = { profile: PropTypes.object, loading: PropTypes.bool.isRequired, avatarRing: PropTypes.bool.isRequired, }; export default AvatarCard;