+
Nutzer {state.email} angelegt.
+ {state.generatedPassword
+ ?
+ :
Das gesetzte Initialpasswort ist dem Nutzer bereits bekannt.
}
+
}>Fertig
+
+ );
+ }
+
+ return (
+
+
+
+
+
+
+
+
+
+ {resetState.status === "done" &&
}
+ {resetState.status === "error" &&
{resetState.message}
}
+
+ );
+}
diff --git a/src/components/user-table.tsx b/src/components/user-table.tsx
new file mode 100644
index 0000000..07f8118
--- /dev/null
+++ b/src/components/user-table.tsx
@@ -0,0 +1,63 @@
+import Link from "next/link";
+import { Plus } from "lucide-react";
+import { Pill } from "@/components/mockup-ui";
+import { Button } from "@/components/ui/button";
+import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@/components/ui/table";
+
+export interface UserTableRow {
+ id: string;
+ name: string;
+ email: string;
+ status: string;
+ roleNames: string[];
+ isSelf?: boolean;
+}
+
+/**
+ * Reine Anzeige-Tabelle der Benutzer. Zeilen verlinken auf das Bearbeiten-Popup
+ * (?edit=