import { observer } from "mobx-react-lite"; // mobx store import { useMobxStore } from "lib/mobx/store-provider"; // constants import { DAYS_LIST } from "constants/calendar"; export const CalendarWeekHeader: React.FC = observer(() => { const { issueFilter: issueFilterStore } = useMobxStore(); const showWeekends = issueFilterStore.userDisplayFilters.calendar?.show_weekends ?? false; return (
{Object.values(DAYS_LIST).map((day) => { if (!showWeekends && (day.shortTitle === "Sat" || day.shortTitle === "Sun")) return null; return (
{day.shortTitle}
); })}
); });