import { j as s } from "../../node_modules/react/jsx-runtime.mjs";
import i from "./CalendarHeadItem.mjs";
import { useMemo as m } from "react";
import u, { CalendarTypeEnum as o } from "./BitzFuiCalendarStore.mjs";
const l = () => {
  const {
    CalendarType: n,
    currentDay: t
  } = u((e) => e), d = m(() => {
    if (n === o.day)
      return [t];
    if (n === o.workWeek) {
      const e = [], a = t.startOf("week");
      for (let r = 1; r <= 5; r++)
        e.push(a.add(r, "day"));
      return e;
    }
    if (n === o.week) {
      const e = [], a = t.startOf("week");
      for (let r = 1; r <= 7; r++)
        e.push(a.add(r, "day"));
      return e;
    }
    return [t];
  }, [n, t]);
  return /* @__PURE__ */ s.jsx("div", { className: "bitzFuiCalendarHead", children: d.map((e, a) => /* @__PURE__ */ s.jsx(i, { time: e }, a)) });
}, y = l;
export {
  y as default
};
