"use client"; import { IconPlus, IconStar } from "@tabler/icons-react"; import { motion } from "motion/react"; import Image from "next/image"; import Link from "next/link"; interface HeroBannerProps { tmdbId: number; type: "movie" | "tv"; title: string; overview: string; backdropPath: string | null; voteAverage: number; } export function HeroBanner({ tmdbId, type, title, overview, backdropPath, voteAverage, }: HeroBannerProps) { const href = `/titles/tmdb-${tmdbId}-${type}`; return (
{backdropPath ? ( {title} ) : (
)} {/* Gradient overlays */}
{/* Content */}
{type} {voteAverage > 0 && ( {voteAverage.toFixed(1)} )} Trending today

{title}

{overview}

Add to Library
); }