Elffuss BraidHub

kikocis/continue public

9c20944b447d · 1.0 KiBRawPermalink
1import { useLump } from "../LumpContext";
2import { ContextSection } from "./ContextSection";
3import { ErrorSection } from "./errors/ErrorSection";
4import MCPSection from "./mcp/MCPSection";
5import { ModelsSection } from "./ModelsSection";
6import { PromptsSection } from "./PromptsSection";
7import { RulesSection } from "./RulesSection";
8import { ToolPoliciesSection } from "./tool-policies/ToolPoliciesSection";
9
10/**
11 * Renders the appropriate section based on the selected section in the Lump context
12 */
13export function SelectedSection() {
14 const { displayedSection } = useLump();
15
16 switch (displayedSection) {
17 case "models":
18 return <ModelsSection />;
19 case "rules":
20 return <RulesSection />;
21 // case "docs":
22 // return <DocsSection />;
23 case "prompts":
24 return <PromptsSection />;
25 case "context":
26 return <ContextSection />;
27 case "tools":
28 return <ToolPoliciesSection />;
29 case "mcp":
30 return <MCPSection />;
31 case "error":
32 return <ErrorSection />;
33 default:
34 return null;
35 }
36}