forked from fahrPool/fahrPool
19 lines
346 B
TypeScript
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>
|
|
);
|
|
}
|