import type { FC } from 'react'; import { Link } from 'react-router-dom'; import { RelativeTimestamp } from '@/mastodon/components/relative_timestamp'; import type { StatusHeaderProps } from '@/mastodon/components/status/header'; import { StatusDisplayName, StatusEditedAt, StatusVisibility, } from '@/mastodon/components/status/header'; import type { Account } from '@/mastodon/models/account'; export const AccountStatusHeader: FC = ({ status, account, children, avatarSize = 48, wrapperProps, onHeaderClick, }) => { const statusAccount = status.get('account') as Account | undefined; const editedAt = status.get('edited_at') as string; return ( /* eslint-disable jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events */
{editedAt && } {children}
); };