import { redirect } from "next/navigation"; import { loadProfile } from "@/lib/auth/profile"; import { ladeDetails } from "@/lib/nutzerverwaltung/details-queries"; import { ProfilForm } from "@/components/profil/ProfilForm"; import { Card } from "@/components/ui/Card"; export default async function ProfilPage() { const profileResult = await loadProfile(); if (profileResult.status !== "ok") { redirect("/login"); } const istSuperadmin = profileResult.profile.role === "superadmin"; const details = istSuperadmin ? undefined : await ladeDetails(profileResult.profile.id); return (
{profileResult.profile.name}
Für den Plattform-Zugang gibt es keine Kontaktdaten.
) : (