import { loadProfile } from "@/lib/auth/profile"; import { listAuftraegeFuerKanban, listFahrerNutzer } from "@/lib/dashboard/queries"; import { KanbanBoard } from "@/components/dashboard/KanbanBoard"; export default async function DashboardPage() { const profileResult = await loadProfile(); if (profileResult.status !== "ok") { return null; } const kannZuweisen = profileResult.profile.role === "admin" || profileResult.profile.role === "disponent"; const [spalten, fahrerListe] = await Promise.all([ listAuftraegeFuerKanban(), kannZuweisen ? listFahrerNutzer() : Promise.resolve([]), ]); return (

Dashboard

); }