import React from 'react'; import { FormattedMessage } from 'react-intl'; import { useHistory } from 'react-router-dom'; import Video from 'soapbox/features/video'; import type { Status, Account, Attachment } from 'soapbox/types/entities'; interface IVideoModal { media: Attachment status: Status account: Account time: number onClose: () => void } const VideoModal: React.FC = ({ status, account, media, time, onClose }) => { const history = useHistory(); const handleStatusClick: React.MouseEventHandler = e => { if (e.button === 0 && !(e.ctrlKey || e.metaKey)) { e.preventDefault(); history.push(`/@${account.acct}/posts/${status.id}`); } }; const link = status && account && ( ); return (
); }; export default VideoModal;