import { useState } from "react"; import { createRoot } from "react-dom/client"; import { ModelConfigSelect } from "@/ModelConfigSelect.js"; import { ZCodeIntlProvider } from "@/i18n/IntlProvider.js"; import "@/styles.css"; const params = new URLSearchParams(location.search); document.documentElement.className = params.get("theme") === "light" ? "light theme-zai-light" : "dark theme-zai-dark"; const name = params.get("name") === "short" ? "GLM" : params.get("name") === "extreme" ? `GLM-${"LongModelName".repeat(20)}` : "GLM-5.3-Highspeed"; function Fixture() { const [selected, setSelected] = useState("text"); return (
false} onValueChange={setSelected} focusSelectorOnClose={null} providerSubmenuClassName={ innerWidth < 600 ? "w-40 min-w-0 max-w-(--radix-dropdown-menu-content-available-width)" : undefined } /> {selected}
); } createRoot(document.getElementById("root")!).render();