import { observer } from "mobx-react"; // constants import { DAYS_LIST } from "@/constants/calendar"; type Props = { isLoading: boolean; showWeekends: boolean; }; export const CalendarWeekHeader: React.FC = observer((props) => { const { isLoading, showWeekends } = props; return (
{isLoading && (
)} {Object.values(DAYS_LIST).map((day) => { if (!showWeekends && (day.shortTitle === "Sat" || day.shortTitle === "Sun")) return null; return (
{day.shortTitle}
); })}
); });