"use client"; import { AnimatePresence , motion } from "framer-motion"; export interface ConfirmModalProps { isShow: boolean; title: string; content: string; okHandler?: () => void; cancelHandler?: () => void; noOk?: boolean; noCancel?: boolean; } export function ConfirmModal({ isShow, title, content, okHandler, cancelHandler, noOk, noCancel, }: ConfirmModalProps) { const close = (result: boolean) => { if(result) { okHandler && okHandler(); } else { cancelHandler && cancelHandler(); } }; return ( {isShow && e.stopPropagation()} > {/*
*/}

{title}

{content}

{!noOk && } {!noCancel && }
{/*
*/}
}
); }