"use client"; import { useActionState } from "react"; import { standortLoeschen, standortSpeichern, type AktionsErgebnis } from "@/server/actions/kunden"; export interface StandortAnzeige { id: string; name: string; strasse: string | null; plz: string | null; ort: string | null; hosts: number; } const LEER: AktionsErgebnis = {}; export function StandortVerwaltung({ kundeId, standorte, }: { kundeId: string; standorte: StandortAnzeige[]; }) { const [ergebnis, aktion, laeuft] = useActionState(standortSpeichern, LEER); return ( <> {standorte.length > 0 ? (