import { CalendarItem, CalendarItemsContainer } from "../calendar.styles.js";
import { jsx } from "react/jsx-runtime";

//#region src/calendar/components/yearPicker.tsx
const YearPicker = ({ calendar, onSelectYear }) => /* @__PURE__ */ jsx(CalendarItemsContainer, {
	className: "vui-year-picker",
	children: calendar.items.map((item) => /* @__PURE__ */ jsx(CalendarItem, {
		fontWeight: 500,
		onClick: !item.isDisabled && onSelectYear?.(item.date) || void 0,
		...item,
		alignContent: "center",
		textAlign: "center",
		children: item.date.getUTCFullYear()
	}, item.date.getTime()))
});

//#endregion
export { YearPicker };
globalThis.__vuiVersion__ = "4.0.1"
//# sourceMappingURL=yearPicker.js.map