import { notFound } from 'next/navigation'; import Link from 'next/link'; import { auth } from '@/lib/auth'; import { getSessionById } from '@/services/sessions'; import { SwotBoard } from '@/components/swot/SwotBoard'; import { SessionLiveWrapper } from '@/components/collaboration'; import { Badge } from '@/components/ui'; interface SessionPageProps { params: Promise<{ id: string }>; } export default async function SessionPage({ params }: SessionPageProps) { const { id } = await params; const authSession = await auth(); if (!authSession?.user?.id) { return null; } const session = await getSessionById(id, authSession.user.id); if (!session) { notFound(); } return (
{/* Header */}
Mes Sessions / {session.title} {!session.isOwner && ( Partagé par {session.user.name || session.user.email} )}

{session.title}

👤 {session.collaborator}

{session.items.length} items {session.actions.length} actions {new Date(session.date).toLocaleDateString('fr-FR', { day: 'numeric', month: 'long', year: 'numeric', })}
{/* Live Session Wrapper */}
); }