1
0
Fork 0
fahrPool/web/app/dashboard/page.tsx

19 lines
346 B
TypeScript

import { loadProfile } from "@/lib/auth/profile";
export default async function DashboardPage() {
const result = await loadProfile();
if (result.status !== "ok") {
return null;
}
return (
<div>
<h1>Dashboard</h1>
<p>
Eingeloggt als {result.profile.name} ({result.profile.role})
</p>
</div>
);
}