"use client" import { useState } from "react" export function PhotoPreview({ photo, alt }: { photo: { url: string; fallback?: string }; alt: string }) { const [failed, setFailed] = useState(false) // Signed storage URLs must bypass Next's image optimizer and remote-host allowlist. // eslint-disable-next-line @next/next/no-img-element return
{alt} setFailed(true)} className={`size-full object-contain ${failed ? "hidden" : ""}`} referrerPolicy="no-referrer" />{failed ?

{photo.fallback ?? alt}

: null}
}