import * as React from 'react'; import { motion } from 'framer-motion'; import { SheetBackdropProps } from './types'; import styles from './styles'; const isClickable = (props: any) => !!props.onClick || !!props.onTap; const SheetBackdrop = React.forwardRef( ({ style = {}, ...rest }, ref) => { const Comp = isClickable(rest) ? motion.button : motion.div; const pointerEvents = isClickable(rest) ? 'auto' : 'none'; return ( ); } ); export default SheetBackdrop;