import { MapPin, Plus } from 'lucide-react'; import { getSupabaseServerClient } from '@kit/supabase/server-client'; import { Button } from '@kit/ui/button'; import { Card, CardContent, CardHeader, CardTitle } from '@kit/ui/card'; import { createCourseManagementApi } from '@kit/course-management/api'; import { CmsPageShell } from '~/components/cms-page-shell'; import { EmptyState } from '~/components/empty-state'; interface PageProps { params: Promise<{ account: string }>; } export default async function LocationsPage({ params }: PageProps) { const { account } = await params; const client = getSupabaseServerClient(); const { data: acct } = await client .from('accounts') .select('id') .eq('slug', account) .single(); if (!acct) return
Kurs- und Veranstaltungsorte verwalten
| Name | Adresse | Raum | Kapazität |
|---|---|---|---|
| {String(loc.name)} | {[loc.street, loc.postal_code, loc.city] .filter(Boolean) .map(String) .join(', ') || '—'} | {String(loc.room ?? '—')} | {String(loc.capacity ?? '—')} |