mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-26 15:48:32 -06:00
21 lines
598 B
TypeScript
21 lines
598 B
TypeScript
"use client";
|
|
|
|
import { useLocalCourseSettingsQuery } from "@/hooks/localCourse/localCoursesHooks";
|
|
import Link from "next/link";
|
|
import { useCourseContext } from "./context/courseContext";
|
|
import { getCourseSettingsUrl } from "@/services/urlUtils";
|
|
|
|
export default function CourseSettingsLink() {
|
|
const { courseName } = useCourseContext();
|
|
const { data: settings } = useLocalCourseSettingsQuery();
|
|
return (
|
|
<div>
|
|
{settings.name}
|
|
|
|
<Link className="mx-3 underline" href={getCourseSettingsUrl(courseName)} shallow={true}>
|
|
Course Settings
|
|
</Link>
|
|
</div>
|
|
);
|
|
}
|