import { jsx as _jsx } from "react/jsx-runtime";
import { CalendarItem as YearItem, CalendarItemsContainer } from '../calendar.styles';
export const YearPicker = ({ calendar, onSelectYear }) => (_jsx(CalendarItemsContainer, { className: "vui-year-picker", children: calendar.items.map(item => (_jsx(YearItem, { fontWeight: 500, onClick: (!item.isDisabled && onSelectYear?.(item.date)) || undefined, ...item, children: item.date.getUTCFullYear() }, item.date.getTime()))) }));
//# sourceMappingURL=yearPicker.js.map