"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
{photo.fallback ?? alt}
: null}