import { Link } from "react-router-dom"; import type { TmdbEntry } from "@/types"; import { useTmdbEntryLink } from "@/hooks/useTmdbEntryLink"; interface MiniPosterCardProps { entry: TmdbEntry; hideTitle?: boolean; } export function MiniPosterCard({ entry, hideTitle }: MiniPosterCardProps) { const title = entry.title || entry.name || "Untitled"; const poster = entry.poster_path ? `https://image.tmdb.org/t/p/w342${entry.poster_path}` : null; const { linkTo } = useTmdbEntryLink(entry); return (
{title}
} ); }