Implement EventStream for live schedule updates

This commit is contained in:
Hornwitser 2025-02-27 15:42:59 +01:00
parent e5aac858e4
commit cdad188233
7 changed files with 172 additions and 36 deletions

12
ui/locations.tsx Normal file
View file

@ -0,0 +1,12 @@
"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>;
}