import * as React from 'react' import { DialogOverlay, DialogContent, DialogOverlayProps } from '@reach/dialog' import { AnimatePresence, motion } from 'framer-motion' import s from './style.module.css' export interface IoDialogProps extends DialogOverlayProps { label: string } export default function IoDialog({ isOpen, onDismiss, children, label, }: IoDialogProps): React.ReactElement { const AnimatedDialogOverlay = motion(DialogOverlay) return ( {isOpen && (
{children}
)}
) }