'use client'; import { useState } from 'react'; import { buildSnippet, type SnippetInput } from '@/lib/install-snippets'; import { CodeBlock } from './code-block'; import { cn } from '@/lib/cn'; import type { InstallTarget } from '@bmm/types'; const TABS: { id: InstallTarget; label: string }[] = [ { id: 'claude-desktop', label: 'Claude Desktop' }, { id: 'claude-code', label: 'Claude Code' }, { id: 'cursor', label: 'Cursor' }, { id: 'vscode', label: 'VS Code' }, { id: 'chatgpt', label: 'ChatGPT' }, { id: 'codex', label: 'Codex' }, { id: 'raw-url', label: 'Other' }, ]; export function InstallSnippets({ input }: { input: SnippetInput }) { const [tab, setTab] = useState('claude-desktop'); const snippet = buildSnippet(tab, input); return (
{TABS.map((t) => ( ))}
{snippet.note && (

{snippet.note}

)}
); }