import { useTranslation } from "react-i18next" import { TrendingUp } from "lucide-react" import { StarDisplay } from "@/components/star-display" import { shortDate } from "@/lib/date" import type { ReviewHistoryResponse } from "@/features/movies" export function ViewingHistory({ history }: { history: ReviewHistoryResponse }) { const { t } = useTranslation() if (history.viewings.length === 0) return null return (

{t("movie.yourHistory")}

{history.trend && (
{t("movie.trend", { trend: history.trend })}
)} {history.viewings.map((v) => (

{shortDate(v.watched_at)}

{v.comment && (

{v.comment}

)}
))}
) }