1 | "use strict";
|
2 | var __importDefault = (this && this.__importDefault) || function (mod) {
|
3 | return (mod && mod.__esModule) ? mod : { "default": mod };
|
4 | };
|
5 | Object.defineProperty(exports, "__esModule", { value: true });
|
6 | exports.DayButton = DayButton;
|
7 | const react_1 = __importDefault(require("react"));
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 | function DayButton(props) {
|
18 | const { day, modifiers, ...buttonProps } = props;
|
19 | const ref = react_1.default.useRef(null);
|
20 | react_1.default.useEffect(() => {
|
21 | if (modifiers.focused)
|
22 | ref.current?.focus();
|
23 | }, [modifiers.focused]);
|
24 | return react_1.default.createElement("button", { ref: ref, ...buttonProps });
|
25 | }
|
26 |
|
\ | No newline at end of file |