import TVShowPage from './TVShowPage'; import { tvAPI } from '@/lib/api'; interface PageProps { params: { id: string; }; searchParams: { [key: string]: string | string[] | undefined }; } async function getData(id: string) { try { const response = await tvAPI.getShow(id); return { id, show: response.data }; } catch (error) { console.error('Error fetching show:', error); return { id, show: null }; } } export default async function Page(props: PageProps) { const { id } = props.params; const data = await getData(id); return ; }