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