Files
emaui/node_modules/@mantine/dates/esm/components/Month/get-week-number/get-week-number.mjs
2026-05-29 15:23:46 +03:00

13 lines
314 B
JavaScript

'use client';
import dayjs from 'dayjs';
import isoWeek from 'dayjs/plugin/isoWeek.js';
dayjs.extend(isoWeek);
function getWeekNumber(week) {
const monday = week.find((date) => dayjs(date).day() === 1);
return dayjs(monday).isoWeek();
}
export { getWeekNumber };
//# sourceMappingURL=get-week-number.mjs.map