import { useSidebarContext } from '../context/SidebarContext'; import classNames from 'classnames'; import { Sidebar as FlowbiteSidebar } from 'flowbite-react'; import type { FC, PropsWithChildren } from 'react'; const Sidebar: FC>> = function ({ children, }) { const { isOpenOnSmallScreens: isSidebarOpenOnSmallScreens } = useSidebarContext(); return (
{children}
); }; export default Object.assign(Sidebar, { ...FlowbiteSidebar });