mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-25 23:28:33 -06:00
15 lines
369 B
TypeScript
15 lines
369 B
TypeScript
"use client";
|
|
import { useModuleNamesQuery } from "@/hooks/localCourse/localCoursesHooks";
|
|
import ExpandableModule from "./ExpandableModule";
|
|
|
|
export default function ModuleList() {
|
|
const { data: moduleNames } = useModuleNamesQuery();
|
|
return (
|
|
<div>
|
|
{moduleNames.map((m) => (
|
|
<ExpandableModule key={m} moduleName={m}/>
|
|
))}
|
|
</div>
|
|
);
|
|
}
|