mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-25 23:28:33 -06:00
15 lines
397 B
TypeScript
15 lines
397 B
TypeScript
"use client"
|
|
import { useLocalCoursesQuery } from "@/hooks/localCoursesHooks";
|
|
import Link from "next/link";
|
|
|
|
export default function Home() {
|
|
const { data: courses } = useLocalCoursesQuery();
|
|
return (
|
|
<main className="min-h-screen">
|
|
{courses.map((c) => (
|
|
<Link href={`/course/${c.settings.name}`} key={c.settings.name}>{c.settings.name} </Link>
|
|
))}
|
|
</main>
|
|
);
|
|
}
|