import { MUTE, FONT_MONO } from "../theme"; import Photo from "./Photo"; /* * Scheef "geplakte" foto met bijschrift. Het bijschrift is de beschrijving die de afzender bij de * foto heeft getypt — dezelfde tekst dient als alt-tekst, want ze zeggen hetzelfde: wat er te zien is. * `caption` overschrijft dat (de schrijfdialoog toont daar het eigen invulveld). */ export default function PhotoFrame({ photo = null, src = null, alt = "", caption, width = "70%", marginBottom = 0 }) { const text = caption !== undefined ? caption : (alt || photo?.alt || ""); return (
{text && (
{text}
)}
); }