import { observer } from "mobx-react-lite"; // 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 && ["Sat", "Sun"].includes(day.shortTitle)) return null; return (
{day.shortTitle}
); })}
); });