import { notFound } from 'next/navigation'; import { TeamDetailPageQuery } from '@/lib/page-queries/TeamDetailPageQuery'; import { TeamDetailPageClient } from './TeamDetailPageClient'; export default async function Page({ params }: { params: { id: string } }) { const result = await TeamDetailPageQuery.execute(params.id); if (result.isErr()) { const error = result.getError(); if (error === 'notFound') { notFound(); } // For other errors, treat as not found for now notFound(); } return ; }