interface Props { open: boolean; title?: string; children: React.ReactNode; onClose: () => void; } export default function InfoModal({ open, title = '정보', children, onClose, }: Props) { if (!open) return null; return (
e.stopPropagation()} >

{title}

{children}
); }