UNPKG

flowbite-react

Version:

Official React components built for Flowbite and Tailwind CSS

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