import type { FC } from 'react' import { createPortal } from 'react-dom' import { RiCloseLine } from '@remixicon/react' type VideoPreviewProps = { url: string title: string onCancel: () => void } const VideoPreview: FC = ({ url, title, onCancel, }) => { return createPortal(
e.stopPropagation()}>
, document.body, ) } export default VideoPreview