import { notFound } from "next/navigation"; import { MovieHeader } from "@/components/MovieHeader"; import { MovieInsightPanel } from "@/components/MovieInsightPanel"; import { getMovieDetails } from "@/lib/tmdb"; export default async function MoviePage({ params, }: { params: Promise<{ id: string }>; }) { const { id } = await params; const movieId = Number(id); if (!Number.isFinite(movieId) || movieId <= 0) { notFound(); } let movie; try { movie = await getMovieDetails(movieId); } catch { notFound(); } return (
genre.name)} />
); }