import React from 'react'; import StillImage from 'soapbox/components/still_image'; import { HStack, Stack, Text } from 'soapbox/components/ui'; 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.verified &&
}
{account.display_name} @{displayFqn ? account.fqn : account.acct}
); }; export default ProfilePreview;