import classNames from 'classnames'; import React from 'react'; import AttachmentThumbs from 'soapbox/components/attachment-thumbs'; import StatusReplyMentions from 'soapbox/components/status-reply-mentions'; import StatusContent from 'soapbox/components/status_content'; import { HStack } from 'soapbox/components/ui'; import AccountContainer from 'soapbox/containers/account_container'; import PollPreview from 'soapbox/features/ui/components/poll_preview'; import { useAppSelector } from 'soapbox/hooks'; import { buildStatus } from '../builder'; import ScheduledStatusActionBar from './scheduled_status_action_bar'; import type { Account as AccountEntity, Poll as PollEntity, Status as StatusEntity } from 'soapbox/types/entities'; interface IScheduledStatus { statusId: string, } const ScheduledStatus: React.FC = ({ statusId, ...other }) => { const status = useAppSelector((state) => buildStatus(state, state.scheduled_statuses.get(statusId))) as StatusEntity; if (!status) return null; const account = status.account as AccountEntity; return (
{status.media_attachments.size > 0 && ( )} {status.poll && }
); }; export default ScheduledStatus;