mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-25 15:18:32 -06:00
18 lines
660 B
TypeScript
18 lines
660 B
TypeScript
"use client";
|
|
import { useLocalCourseSettingsQuery } from "@/features/local/course/localCoursesHooks";
|
|
import { getDateOnlyMarkdownString } from "@/features/local/utils/timeUtils";
|
|
import React from "react";
|
|
import { settingsBox } from "./sharedSettings";
|
|
|
|
export default function StartAndEndDate() {
|
|
const { data: settings } = useLocalCourseSettingsQuery();
|
|
const startDate = new Date(settings.startDate);
|
|
const endDate = new Date(settings.endDate);
|
|
return (
|
|
<div className={settingsBox}>
|
|
<div>Semester Start: {getDateOnlyMarkdownString(startDate)}</div>
|
|
<div>Semester End: {getDateOnlyMarkdownString(endDate)}</div>
|
|
</div>
|
|
);
|
|
}
|