UNPKG

flowbite-react

Version:

Official React components built for Flowbite and Tailwind CSS

15 lines (14 loc) 569 B
"use strict"; 'use client'; Object.defineProperty(exports, "__esModule", { value: true }); exports.useDatePickerContext = exports.DatepickerContext = void 0; const react_1 = require("react"); exports.DatepickerContext = (0, react_1.createContext)(undefined); function useDatePickerContext() { const context = (0, react_1.useContext)(exports.DatepickerContext); if (!context) { throw new Error('useDatePickerContext should be used within the DatePickerContext provider!'); } return context; } exports.useDatePickerContext = useDatePickerContext;