import React from 'react'; type Props = { open: boolean; onClose?: () => void; title: string; children: React.ReactNode; } const Dialog = ({ open, title, children, onClose = () => undefined, }: Props): JSX.Element => { if (!open) { return <>>; } return ( <>