forked from fahrPool/fahrPool
22 lines
554 B
TypeScript
22 lines
554 B
TypeScript
import { loadProfile } from "@/lib/auth/profile";
|
|
import { Card } from "@/components/ui/Card";
|
|
|
|
export default async function DashboardPage() {
|
|
const result = await loadProfile();
|
|
|
|
if (result.status !== "ok") {
|
|
return null;
|
|
}
|
|
|
|
return (
|
|
<div className="mx-auto max-w-2xl p-4 md:p-8">
|
|
<Card>
|
|
<h1 className="text-xl font-semibold text-asphalt-grey">Dashboard</h1>
|
|
<p className="mt-2 text-asphalt-grey">
|
|
Eingeloggt als {result.profile.name} ({result.profile.role})
|
|
</p>
|
|
</Card>
|
|
</div>
|
|
);
|
|
}
|