MCPcopy Create free account
hub / github.com/cosscom/coss / CodeTabs

Function CodeTabs

apps/ui/components/code-tabs.tsx:7–25  ·  view source on GitHub ↗
({ children }: React.ComponentProps<typeof Tabs>)

Source from the content-addressed store, hash-verified

5import { useConfig } from "@/hooks/use-config";
6
7export function CodeTabs({ children }: React.ComponentProps<typeof Tabs>) {
8 const [config, setConfig] = useConfig();
9
10 const installationType = React.useMemo(() => {
11 return config.installationType || "cli";
12 }, [config]);
13
14 return (
15 <Tabs
16 className="relative mt-6 w-full"
17 onValueChange={(value) =>
18 setConfig({ ...config, installationType: value as "cli" | "manual" })
19 }
20 value={installationType}
21 >
22 {children}
23 </Tabs>
24 );
25}

Callers

nothing calls this directly

Calls 1

useConfigFunction · 0.90

Tested by

no test coverage detected