// Can AI pick your React view?
// Teaching excerpts; see the explanation and boundaries on the episode page.
// Supply the question, choices and fallback
function ViewPicker({ question }: { question: string }) {
return (
);
}
// Connect the provider to your server
import { Branch, JevProvider, Option } from "jev-ui";
// serverResolver is supplied by your application.
// A known choice needs no model
view === "chart"
?
: