MCPcopy Create free account
hub / github.com/agent-tower/core / TabButton

Function TabButton

packages/web/src/components/workspace/WorkspacePanel.tsx:94–108  ·  view source on GitHub ↗
({ active, onClick, icon, label })

Source from the content-addressed store, hash-verified

92 { key: "history", label: "History", icon: <History size={14} /> },
93 { key: "editor", label: "Editor", icon: <Code2 size={14} /> },
94 { key: "terminal", label: "Terminal", icon: <Terminal size={14} /> },
95 { key: "preview", label: "Preview", icon: <Globe size={14} /> },
96]
97
98// ============================================================
99// 子组件
100// ============================================================
101
102/** Tab 按钮 — folder 风格 */
103const TabButton: React.FC<{
104 active: boolean
105 onClick: () => void
106 icon: React.ReactNode
107 label: string
108}> = ({ active, onClick, icon, label }) => (
109 <button
110 type="button"
111 onClick={onClick}

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected