import { Status } from '@shared/types/Course'; import { Button } from '@views/components/common/Button/Button'; import CourseStatus from '@views/components/common/CourseStatus/CourseStatus'; import Divider from '@views/components/common/Divider/Divider'; import { LogoIcon } from '@views/components/common/LogoIcon'; import ScheduleTotalHoursAndCourses from '@views/components/common/ScheduleTotalHoursAndCourses/ScheduleTotalHoursAndCourses'; import Text from '@views/components/common/Text/Text'; import useSchedules from '@views/hooks/useSchedules'; import { getUpdatedAtDateTimeString } from '@views/lib/getUpdatedAtDateTimeString'; import { openTabFromContentScript } from '@views/lib/openNewTabFromContentScript'; import React from 'react'; import MenuIcon from '~icons/material-symbols/menu'; import RedoIcon from '~icons/material-symbols/redo'; import SettingsIcon from '~icons/material-symbols/settings'; import UndoIcon from '~icons/material-symbols/undo'; /** * Opens the options page in a new tab. * @returns A promise that resolves when the options page is opened. */ const handleOpenOptions = async (): Promise => { const url = chrome.runtime.getURL('/options.html'); await openTabFromContentScript(url); }; /** * Renders the header component for the calendar. * @returns The JSX element representing the calendar header. */ export default function CalendarHeader(): JSX.Element { const [activeSchedule] = useSchedules(); return (
LAST UPDATED: {getUpdatedAtDateTimeString(activeSchedule.updatedAt)}
); }