import type { FC } from 'react'; import { FormattedMessage, useIntl } from 'react-intl'; import type { MessageDescriptor } from 'react-intl'; import { Link } from 'react-router-dom'; import { Callout } from '@/mastodon/components/callout'; import { DisplayNameSimple } from '@/mastodon/components/display_name/simple'; import { useAccount } from '@/mastodon/hooks/useAccount'; import { useCurrentAccountId } from '@/mastodon/hooks/useAccountId'; import classes from '../styles.module.scss'; export const AccountListHeader: FC<{ accountId: string; total?: number; titleText: MessageDescriptor; }> = ({ accountId, total, titleText }) => { const intl = useIntl(); const account = useAccount(accountId); const currentId = useCurrentAccountId(); return ( <>

{intl.formatMessage(titleText, { name: , })}

{!!total && (

)} {accountId === currentId && account?.hide_collections && ( {chunks}, page: ( ), modal: ( ), field: ( ), }} /> )} ); };