import { createRoot } from "react-dom/client"; import { ComputerFilesPane } from "../../src/components/ComputerFilesPane"; import { BotEditorStore, initialState, type Bot } from "../../src/state/store"; import { applySkin } from "../../src/lib/skins"; import { setAnalyticsEnabled } from "../../src/lib/analytics"; import { setLocale } from "../../src/lib/i18n"; import "../../src/styles.css"; setAnalyticsEnabled(false); setLocale("en"); applySkin(new URLSearchParams(location.search).get("skin") === "atelier" ? "atelier" : "midnight"); const bot: Bot = await fetch("/__computer-files-fixture").then((response) => response.json()); const value = { state: { ...initialState, bots: [bot], selectedId: bot.id }, dispatch: () => {}, flushBotPatches: async () => null, refreshInstances: async () => {}, refreshModels: async () => {}, }; createRoot(document.getElementById("root")!).render(

File reviewer ยท Files

, );