import { redirect } from 'next/navigation'; import { getCurrentUser } from '@/lib/auth'; import { hasPageAccess } from '@/lib/permissions'; import DashboardLayout from '@/components/DashboardLayout'; import UniversProTable from '@/components/UniversProTable'; export default async function UniversProPage() { const user = await getCurrentUser(); if (!user) { redirect('/login'); } const hasAccess = await hasPageAccess(user.id, '/dashboard/univers-pro'); if (!hasAccess) { redirect('/dashboard/parametres'); } return (

Univers Pro

Base de données des contacts professionnels

); }