Added Chat Page
This commit is contained in:
21
app/dashboard/archives/page.tsx
Normal file
21
app/dashboard/archives/page.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
import { getCurrentUser } from '@/lib/auth';
|
||||
import { redirect } from 'next/navigation';
|
||||
import DashboardLayout from '@/components/DashboardLayout';
|
||||
import ArchivesTrajets from '@/components/ArchivesTrajets';
|
||||
|
||||
export default async function ArchivesPage() {
|
||||
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">Archives</h1>
|
||||
<p className="text-sm text-cgray mb-8">Trajets archivés</p>
|
||||
<ArchivesTrajets />
|
||||
</div>
|
||||
</DashboardLayout>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user