28 lines
724 B
TypeScript
28 lines
724 B
TypeScript
import { redirect } from 'next/navigation';
|
|
import { getCurrentUser } from '@/lib/auth';
|
|
import DashboardLayout from '@/components/DashboardLayout';
|
|
import CalendrierPageContent from '@/components/CalendrierPageContent';
|
|
|
|
export default async function CalendrierPage() {
|
|
const user = await getCurrentUser();
|
|
|
|
if (!user) {
|
|
redirect('/login');
|
|
}
|
|
|
|
return (
|
|
<DashboardLayout user={user}>
|
|
<div className="p-8">
|
|
<h1 className="text-3xl font-semibold text-cblack mb-2">
|
|
Calendrier
|
|
</h1>
|
|
<p className="text-sm text-cgray mb-8">
|
|
Gestion des trajets et planning des chauffeurs
|
|
</p>
|
|
|
|
<CalendrierPageContent />
|
|
</div>
|
|
</DashboardLayout>
|
|
);
|
|
}
|