import type { FC } from 'react' import { createPortal } from 'react-dom' import { XClose } from '@/app/components/base/icons/src/vender/line/general' type ImagePreviewProps = { url: string onCancel: () => void } const ImagePreview: FC = ({ url, onCancel, }) => { return createPortal(
e.stopPropagation()}> preview image
, document.body, ) } export default ImagePreview