import React from 'react'; import { Link } from 'react-router-dom'; import StillImage from 'soapbox/components/still_image'; import VerificationBadge from 'soapbox/components/verification_badge'; import { useSoapboxConfig } from 'soapbox/hooks'; import type { Account } from 'soapbox/types/entities'; interface IProfilePreview { account: Account, } /** Displays a preview of the user's account, including avatar, banner, etc. */ const ProfilePreview: React.FC = ({ account }) => { const { displayFqn } = useSoapboxConfig(); return (
{account.username} {account.display_name} {account.verified && } @{displayFqn ? account.fqn : account.acct}
); }; export default ProfilePreview;