UNPKG

flowbite-react

Version:

Official React components built for Flowbite and Tailwind CSS

15 lines (12 loc) 446 B
'use client'; import { createContext, useContext } from 'react'; const SidebarItemContext = createContext(void 0); function useSidebarItemContext() { const context = useContext(SidebarItemContext); if (!context) { throw new Error("useSidebarItemContext should be used within the SidebarItemContext provider!"); } return context; } export { SidebarItemContext, useSidebarItemContext }; //# sourceMappingURL=SidebarItemContext.js.map