'use client';
import { IncidentRow } from '@/components/incidents/IncidentRow';
import { Empty } from '@/components/ui/primitives';
import { useLive } from '@/lib/live';
import type { Incident } from '@/lib/types';
export function IncidentsList({ initial, compact = false, limit }: { initial: Incident[] | null; compact?: boolean; limit?: number }) {
const live = useLive((s) => s.incidents);
let list = live ?? initial ?? [];
if (limit) list = list.slice(0, limit);
if (!list.length) return