import { calcPath } from "../utils/calcPath"; export function Thumbnail({ diagram, i, zoom }) { const translateX = 32 * zoom; const translateY = 32 * zoom; const theme = localStorage.getItem("theme"); return ( {diagram.subjectAreas?.map((a) => ( 0 ? a.width : 0} height={a.height > 0 ? a.height : 0} >
{a.name}
))} {diagram.tables?.map((table, i) => { const height = table.fields.length * 36 + 50 + 7; return (
{table.name}
{table.fields.map((f, j) => (
{f.name}
{f.type}
))}
); })} {diagram.relationships?.map((e, i) => ( ))} {diagram.notes?.map((n) => { const x = n.x; const y = n.y; const w = 180; const r = 3; const fold = 24; const h = n.height; return (
{n.content}
); })} ); }