import type { ReactNode } from 'react'; type DialogSurfaceProps = { open: boolean; title: string; widthClassName?: string; onClose: () => void; children: ReactNode; }; export default function DialogSurface({ open, title, widthClassName = 'max-w-[560px]', onClose, children, }: DialogSurfaceProps) { if (!open) return null; return (