import { defineMessages, useIntl } from 'react-intl'; import { Link } from 'react-router-dom'; import CloseIcon from '@/material-icons/400-24px/close.svg?react'; import { Avatar } from 'mastodon/components/avatar'; import { DisplayName } from 'mastodon/components/display_name'; import { IconButton } from 'mastodon/components/icon_button'; import { useAppSelector } from 'mastodon/store'; const messages = defineMessages({ close: { id: 'lightbox.close', defaultMessage: 'Close' }, }); interface Props { accountId: string; statusId: string; onClose: () => void; } export const Header: React.FC = ({ accountId, statusId, onClose }) => { const account = useAppSelector((state) => state.accounts.get(accountId)); const intl = useIntl(); if (!account) return null; return (
); };