1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.labelDay = void 0;
|
4 | exports.labelDayButton = labelDayButton;
|
5 | const index_js_1 = require("../lib/index.js");
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 | function labelDayButton(date,
|
17 | /** The modifiers for the day. */
|
18 | modifiers, options,
|
19 | /** @ignore */
|
20 | dateLib = index_js_1.dateLib) {
|
21 | let label = dateLib.format(date, "PPPP", options);
|
22 | if (modifiers.today)
|
23 | label = `Today, ${label}`;
|
24 | if (modifiers.selected)
|
25 | label = `${label}, selected`;
|
26 | return label;
|
27 | }
|
28 |
|
29 | exports.labelDay = labelDayButton;
|
30 |
|
\ | No newline at end of file |