import { isCitedSite } from "yt-dlp-transcript-common/lib/siteSchema"; import { instanceMode } from "../lib/mode"; import { currentSite } from "../lib/site"; import SiteWorkspace from "./SiteWorkspace"; // Shared shell for the two workspace routes — `/` (results) and `/ask` (chat). // A route group ("(workspace)") leaves both URLs unchanged but gives them one // layout, so the persistent search bar mounted in the single-site shell below // survives navigation between them. // // Hub mode keeps its own self-contained pages (, ), so here // it's a straight pass-through — the fork is preserved exactly as before. So // is a CITED site (site.json `search: false`): it has no corpus to search, // and its home is the report index. export default function WorkspaceLayout({ children, }: { children: React.ReactNode; }) { if (instanceMode() === "hub" || isCitedSite(currentSite())) return <>{children}; // site.json `transcriptDownloads: false` hides the transcript modal's // per-video export controls (absent = on). return ( {children} ); }