import { fmtBytes } from "@/lib/format"; /** ScientificFigure — a real research figure served from the immutable artifact store. */ export function ScientificFigure({ src, path, bytes, index, vector, }: { src: string; path: string; bytes: number; index: number; vector?: { href: string; bytes: number }; }) { const name = path.replace(/^results\/figures\//, ""); return (
{/* biome-ignore lint/performance/noImgElement: artifact images are served immutable from this origin */} {`Figure
Figure {index}. {name} {fmtBytes(bytes)} {vector && ( <> {" · "} vector PDF ({fmtBytes(vector.bytes)}) )}
); }