"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.YearPicker = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const calendar_styles_1 = require("../calendar.styles");
const YearPicker = ({ calendar, onSelectYear }) => ((0, jsx_runtime_1.jsx)(calendar_styles_1.CalendarItemsContainer, { className: "vui-year-picker", children: calendar.items.map(item => ((0, jsx_runtime_1.jsx)(calendar_styles_1.CalendarItem, Object.assign({ fontWeight: 500, onClick: (!item.isDisabled && (onSelectYear === null || onSelectYear === void 0 ? void 0 : onSelectYear(item.date))) || undefined }, item, { children: item.date.getUTCFullYear() }), item.date.getTime()))) }));
exports.YearPicker = YearPicker;
//# sourceMappingURL=yearPicker.js.map