{mode === "simulation" ? (
{typedPrompt}
{isTypingSimulation && (
)}
) : (
)}
{(mode === "simulation" || isStreaming) ? (
) : (
)}
Try: "Create a login form" or "Build a feedback form with rating"
{/* Tabbed code/stream/json panel */}
{(["json", "stream", "code"] as const).map((tab) => (
))}
{streamLines.length > 0 ? (
<>
{showLoadingDots && (
)}
>
) : (
{showLoadingDots ? "streaming..." : "waiting..."}
)}
{/* Rendered output using json-render */}
render
{currentTree && currentTree.root ? (
[0]['registry']}>
[0]['registry']}
loading={isStreaming || isStreamingSimulation}
fallback={fallbackComponent as Parameters[0]['fallback']}
/>
) : (
{isStreaming ? "generating..." : "waiting..."}
)}