import { getMovieDetail } from '@/lib/api'; import MovieDetailView from '@/components/MovieDetailView'; interface PageProps { params: Promise<{ id: string }>; } export default async function MoviePage({ params }: PageProps) { const { id } = await params; if (!id || id === '[object Object]') { return
Invalid Movie ID
; } try { const detail = await getMovieDetail(id); return ; } catch (e) { // Silently handle error for invalid IDs return (

Movie Not Found

The content you are looking for does not exist or has been removed.

Go Home
); } }