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