UNPKG

flowbite-react

Version:

Official React components built for Flowbite and Tailwind CSS

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