{error}
; + } + if (!Component) { + return ( ++ Declarative widget has no spec — data corruption. +
+ ); + } + const onStatePersist = (state: Record+ Bundled widget missing required fields (integration disconnected, or + bundle not deployed). +
+ ); + } + + const mergedConfig: Record+ {String(text ?? "")} +
+ ); +} + +interface HeadingSpec { + id: string; + type: "Heading"; + text: string; + level?: 1 | 2 | 3 | 4; + align?: Align; +} + +function HeadingBlock({ block }: { block: HeadingSpec }) { + const text = useEvaluate(block.text); + const level = block.level ?? 2; + const sizes = { + 1: "text-2xl", + 2: "text-xl", + 3: "text-lg", + 4: "text-base", + }; + const Tag = (`h${level}`) as "h1" | "h2" | "h3" | "h4"; + if (isPending(text)) { + return+ {empty || "Nothing here yet."} +
+ ); + } + + return ( ++ {empty || "No rows."} +
+ ); + } + + return ( +| + {col.label} + | + ))} +
|---|
| + {formatCell(value, col.format)} + | + ); + })} +