import type React from 'react'; import { AnimatePresence, AnimateSharedLayout, m } from 'framer-motion'; import { FiArrowLeft } from 'react-icons/fi'; import { IconButton } from '@components/generic/button/IconButton'; export interface SidebarOverlayProps { title: string; open: boolean; close: () => void; direction: 'x' | 'y'; children: React.ReactNode; } export const SidebarOverlay = ({ title, open, close, direction, children, }: SidebarOverlayProps): JSX.Element => { return ( {open && ( {/*
*/}
{ close(); }} icon={} />
{title}
{children}
)} ); };