import React from 'react'; import Modal from '../Modal'; import { Wrapper } from './styled'; type Props = { children: React.ReactNode; open: boolean; }; const Dialog: React.FunctionComponent = ({ children, open, }: Props) => ( open ? ( {children} ) : null ); export default Dialog;