import React, { memo } from 'react'; import { IoIosCloseCircleOutline } from 'react-icons/io'; import { motion, AnimatePresence } from 'framer-motion'; const sheetStyle = { padding: '1em 2em', position: 'fixed', left: 0, right: 0, top: 0, bottom: 0, zIndex: 10, overflowY: 'scroll', }; const Sheet = memo(({ visible, onClosePress, style, children }) => ( {visible && ( {children} )} )); export default Sheet;