import { showDialog } from "./Dialog"; import "../less/preview-image-dialog.less"; interface Props extends DialogProps { imgUrl: string; } const PreviewImageDialog: React.FC = ({ destroy, imgUrl }: Props) => { const handleCloseBtnClick = () => { destroy(); }; return ( <>
); }; export default function showPreviewImageDialog(imgUrl: string): void { showDialog( { className: "preview-image-dialog", }, PreviewImageDialog, { imgUrl } ); }