import { notFound } from 'next/navigation'; import { auth } from '@/lib/auth'; import { getGifMoodSessionById } from '@/services/gif-mood'; import { getUserTeams } from '@/services/teams'; import { GifMoodBoard, GifMoodLiveWrapper } from '@/components/gif-mood'; import { Badge, SessionPageHeader } from '@/components/ui'; interface GifMoodSessionPageProps { params: Promise<{ id: string }>; } export default async function GifMoodSessionPage({ params }: GifMoodSessionPageProps) { const { id } = await params; const authSession = await auth(); if (!authSession?.user?.id) { return null; } const session = await getGifMoodSessionById(id, authSession.user.id); if (!session) { notFound(); } const userTeams = await getUserTeams(authSession.user.id); return (
{session.items.length} GIFs} /> {/* Live Wrapper + Board */}
); }