mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-25 23:28:33 -06:00
25 lines
633 B
TypeScript
25 lines
633 B
TypeScript
"use client";
|
|
|
|
import { useLocalCourseSettingsQuery } from "@/features/local/course/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>
|
|
);
|
|
}
|