1 | import dayjs from 'dayjs';
|
2 | export function convertValueToRange(selectionMode, value) {
|
3 | if (selectionMode === undefined || value === null) return null;
|
4 | if (Array.isArray(value)) {
|
5 | return value;
|
6 | }
|
7 | return [value, value];
|
8 | }
|
9 | export function convertPageToDayjs(page) {
|
10 | return dayjs().year(page.year).month(page.month - 1).date(1);
|
11 | } |
\ | No newline at end of file |