mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-26 15:48:32 -06:00
20 lines
536 B
TypeScript
20 lines
536 B
TypeScript
"use client";
|
|
import { useLocalCoursesSettingsQuery } from "@/hooks/localCourse/localCoursesHooks";
|
|
import { getCourseUrl } from "@/services/urlUtils";
|
|
import Link from "next/link";
|
|
|
|
export default function CourseList() {
|
|
const { data: allSettings } = useLocalCoursesSettingsQuery();
|
|
return (
|
|
<div>
|
|
{allSettings.map((settings) => (
|
|
<div key={settings.name}>
|
|
<Link href={getCourseUrl(settings.name)} shallow={true}>
|
|
{settings.name}
|
|
</Link>
|
|
</div>
|
|
))}
|
|
</div>
|
|
);
|
|
}
|