import { FormattedMessage } from 'react-intl'; import type { ExpandedStatusShape } from '@/mastodon/models/status'; import AlternateEmailIcon from '@/material-icons/400-24px/alternate_email.svg?react'; import RepeatIcon from '@/material-icons/400-24px/repeat.svg?react'; import { LinkedDisplayName } from '../display_name'; import { Icon } from '../icon'; import { StatusThreadLabel } from '../status_thread_label'; export const StatusPrepend: React.FC<{ status: ExpandedStatusShape; showThread?: boolean; isReblog?: boolean; }> = ({ status, showThread, isReblog }) => { if (isReblog) { return (
), }} tagName='span' />
); } if (status.visibility === 'direct') { return (
); } if (showThread && status.in_reply_to_account_id) { return ( ); } return null; };