import { FormattedMessage } from 'react-intl'; import { Link } from 'react-router-dom'; import { useSelector } from 'react-redux'; import BarChart4BarsIcon from '@/material-icons/400-24px/bar_chart_4_bars.svg?react'; import PhotoLibraryIcon from '@/material-icons/400-24px/photo_library.svg?react'; import { Avatar } from 'mastodon/components/avatar'; import { DisplayName } from 'mastodon/components/display_name'; import { Icon } from 'mastodon/components/icon'; import { EmbeddedStatusContent } from 'mastodon/features/notifications_v2/components/embedded_status_content'; export const ReplyIndicator = () => { const inReplyToId = useSelector(state => state.getIn(['compose', 'in_reply_to'])); const status = useSelector(state => state.getIn(['statuses', inReplyToId])); const account = useSelector(state => state.getIn(['accounts', status?.get('account')])); if (!status) { return null; } return (
{(status.get('poll') || status.get('media_attachments').size > 0) && (
{status.get('poll') && <>} {status.get('media_attachments').size > 0 && <>}
)}
); };