import { useState } from 'preact/hooks'; /** A consultant-curated static exhibit: PNG + title + caption, from * /api/exhibits/list or an inline {title, png_url, caption}. */ export default function ExhibitImage({ title, png_url, caption, tall }) { const [broken, setBroken] = useState(false); return (
{title &&
{title}
} {!broken ? ( {title setBroken(true)} /> ) : (
exhibit unavailable ({png_url})
)} {caption &&

{caption}

}
); }