import React from 'react'; import AttachmentThumbs from 'soapbox/components/attachment-thumbs'; import { Stack, Text } from 'soapbox/components/ui'; import AccountContainer from 'soapbox/containers/account_container'; import { isRtl } from 'soapbox/rtl'; import type { Status } from 'soapbox/types/entities'; interface IReplyIndicator { status?: Status, onCancel?: () => void, hideActions: boolean, } const ReplyIndicator: React.FC = ({ status, hideActions, onCancel }) => { const handleClick = () => { onCancel!(); }; if (!status) { return null; } let actions = {}; if (!hideActions && onCancel) { actions = { onActionClick: handleClick, actionIcon: require('@tabler/icons/icons/x.svg'), actionAlignment: 'top', actionTitle: 'Dismiss', }; } return ( {status.media_attachments.size > 0 && ( )} ); }; export default ReplyIndicator;