export const dynamic = 'force-dynamic' import { createClient } from '@/lib/supabase/server' import { IncidentList, type Incident } from '@/components/incidents/incident-list' export default async function SupervisorInboxPage() { const supabase = await createClient() const { data: incidents } = await supabase .from('incidents') .select(` id, reference_no, incident_type, status, severity, reported_at, sites (name), zones (name), reporter:users!reported_by (name) `) .order('reported_at', { ascending: false }) .limit(100) return (

Incident Inbox

{incidents?.length ?? 0} incidents
) }