import type { FC } from 'react'; import { FormattedMessage, useIntl } from 'react-intl'; import IconVerified from '@/images/icons/icon_verified.svg?react'; import { DisplayName } from '@/mastodon/components/display_name'; import { AnimateEmojiProvider } from '@/mastodon/components/emoji/context'; import { EmojiHTML } from '@/mastodon/components/emoji/html'; import { Icon } from '@/mastodon/components/icon'; import { IconButton } from '@/mastodon/components/icon_button'; import { LoadingIndicator } from '@/mastodon/components/loading_indicator'; import { useElementHandledLink } from '@/mastodon/components/status/handled_link'; import { useAccount } from '@/mastodon/hooks/useAccount'; import CloseIcon from '@/material-icons/400-24px/close.svg?react'; import classes from './redesign.module.scss'; export const AccountFieldsModal: FC<{ accountId: string; onClose: () => void; }> = ({ accountId, onClose }) => { const intl = useIntl(); const account = useAccount(accountId); const htmlHandlers = useElementHandledLink(); if (!account) { return (