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