1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.dayPickerContext = void 0;
|
4 | exports.useDayPicker = useDayPicker;
|
5 | const react_1 = require("react");
|
6 |
|
7 | exports.dayPickerContext = (0, react_1.createContext)(undefined);
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 | function useDayPicker(props) {
|
15 | const context = (0, react_1.useContext)(exports.dayPickerContext);
|
16 | if (context === undefined) {
|
17 | throw new Error("useDayPicker() must be used within a custom component.");
|
18 | }
|
19 | return context;
|
20 | }
|
21 |
|
\ | No newline at end of file |