import { DialogOverlay, DialogOverlayProps } from '@reach/dialog'; import { motion, Variant } from 'framer-motion'; import { rgba } from 'polished'; import { useTheme } from 'styled-components'; import { Box } from '../../Box'; export interface ActionSheetOverlayProps extends Pick { onClose: DialogOverlayProps['onDismiss']; } const MotionDialogOverlay = motion.custom(DialogOverlay); export const ActionSheetOverlay = ({ children, onClose }: ActionSheetOverlayProps) => { const theme = useTheme(); const animation: { animate: Variant; exit: Variant; initial: Variant } = { animate: { opacity: 1 }, exit: { opacity: 0 }, initial: { opacity: 0 }, }; return ( {children} ); };