"use client"; import { useState } from "react"; import Image from "next/image"; import type { LastYearWinner } from "@/content/last-year-winners"; import { cn } from "@/lib/utils"; const GRV_LOGO = "/branding/logo-icon.png"; type Props = { company: LastYearWinner; className?: string; }; export function LastYearWinnerMark({ company, className }: Props) { const [failed, setFailed] = useState(false); const src = company.logoSrc ?? GRV_LOGO; const showImage = !failed && src; const logoOnly = !company.name; return (