// Framework-only fixture: real panel rendering and persistence for requested modes. import * as React from "react"; import { createRoot } from "react-dom/client"; import { composeToolcraftApp, ToolcraftApp, useToolcraftValue } from "@repo/toolcraft-runtime/react"; import { createProductModeFixture } from "../src/app/acceptance/product-mode.test-support"; import "../src/styles.css"; function SceneCaption() { const mode = useToolcraftValue("scene.mode"); const diagram = useToolcraftValue("scene.caption"); const map = useToolcraftValue("map.caption"); return {String(mode === "map" ? map : diagram)}; } const { schema } = createProductModeFixture(); createRoot(document.getElementById("root")!).render( } })} />, );