{visible.map((i) => {
const frame = frames?.[i];
const dimensions = frame?.kind === "ready" && frame.intrinsic.width + " × " + frame.intrinsic.height;
return (
{frame?.kind === "ready" ? (
) : (
{!frame ? (
Loading…
) : frame.kind === "absent" ? (
No image on this side
) : (
tx`Cannot show the image: ${frame.error}`
)}
)}
);
})}
{highlight && frames && hasImage && (
)}