import {
Drawer,
DrawerBody,
DrawerOverlay,
DrawerContent,
DrawerCloseButton,
Flex,
Spacer,
} from '@chakra-ui/react';
import { BottomCard, SidebarContent } from './SidebarContent';
import { AnimatePresence, motion } from 'framer-motion';
import { usePageStore } from '@/stores';
import { sidebarBreakpoint } from '@/theme/breakpoints';
import { ReactNode } from 'react';
export function Sidebar({ sidebar }: { sidebar?: ReactNode }) {
return (
{sidebar ?? }
);
}
export function SidebarResponsive({ sidebar }: { sidebar?: ReactNode }) {
const [isOpen, setOpen] = usePageStore((s) => [s.sidebarIsOpen, s.setSidebarIsOpen]);
return (
setOpen(false)}>
setOpen(false)}
_focus={{ boxShadow: 'none' }}
_hover={{ boxShadow: 'none' }}
/>
{sidebar ?? }
);
}