12 lines
310 B
TypeScript
12 lines
310 B
TypeScript
"use client";
|
|
import { useSchedule } from "@/app/schedule/context";
|
|
|
|
export function Locations() {
|
|
const schedule = useSchedule();
|
|
return <ul>
|
|
{schedule!.locations.map(location => <li key={location.id}>
|
|
<h3>{location.name}</h3>
|
|
{location.description ?? "No description provided"}
|
|
</li>)}
|
|
</ul>;
|
|
}
|