import { useState } from "react"; import { createRoot } from "react-dom/client"; import { PluginUiToolCallView } from "@/plugin-ui/components/PluginUiToolCallBlock.js"; import { ZCodeIntlProvider, useZCodeIntl } from "@/i18n/IntlProvider.js"; import "@/styles.css"; const params = new URLSearchParams(location.search); document.documentElement.className = `${params.get("theme")} theme-zai-${params.get("theme")}`; function Fixture() { const [opened, setOpened] = useState(false); const { intl } = useZCodeIntl(); const label = (id: string) => intl.formatMessage({ id }); return (
{}} onOpenSidePane={() => setOpened(true)} />
); } createRoot(document.getElementById("root")!).render( , );