import { useState } from "react"; import { ThreadShell } from "@/components/thread/ThreadShell"; import type { WorkspaceScopePayload } from "@/lib/types"; import { StartupSkeleton } from "@/components/StartupSkeleton"; import { settings } from "@/dev/gallery/settings"; import "@/components/startup-skeleton.css"; const noop = () => {}; export function NewChatSkeletonFixture() { const params = new URLSearchParams(location.search); const [workspaceScope, setWorkspaceScope] = useState({ project_path: "/workspace", access_mode: "full" }); const sidebarExpanded = !params.has("collapsed"); const sidebarWidth = Number(params.get("sidebarWidth") ?? 272); const dark = params.has("dark"); document.documentElement.classList.toggle("dark", dark); return
{params.has("loading") ? : <>
; }