Added Chat Page
This commit is contained in:
20
app/dashboard/messagerie/page.tsx
Normal file
20
app/dashboard/messagerie/page.tsx
Normal file
@@ -0,0 +1,20 @@
|
||||
import { redirect } from 'next/navigation';
|
||||
import { getCurrentUser } from '@/lib/auth';
|
||||
import DashboardLayout from '@/components/DashboardLayout';
|
||||
import Messagerie from '@/components/Messagerie';
|
||||
|
||||
export default async function MessageriePage() {
|
||||
const user = await getCurrentUser();
|
||||
|
||||
if (!user) {
|
||||
redirect('/login');
|
||||
}
|
||||
|
||||
return (
|
||||
<DashboardLayout user={user}>
|
||||
<div className="h-full">
|
||||
<Messagerie />
|
||||
</div>
|
||||
</DashboardLayout>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user