(message: string, tone: "muted" | "error" = "muted")
| 210 | } |
| 211 | |
| 212 | function renderEmpty(message: string, tone: "muted" | "error" = "muted"): void { |
| 213 | const main = element("main", { className: "shell" }); |
| 214 | main.append(element("section", { className: `empty ${tone}`, text: message })); |
| 215 | appRoot.replaceChildren(main); |
| 216 | } |
| 217 | |
| 218 | async function renderPayloadIfNeeded(): Promise<void> { |
| 219 | if (!card || !currentPayloadContainer || (!expanded && !isReviewTool(card.tool))) return; |