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

Function TabButton

design/agent-tower/components/WorkspacePanel.tsx:315–327  ·  view source on GitHub ↗
({ active, onClick, icon, label }: { active: boolean; onClick: () => void; icon: React.ReactNode; label: string })

Source from the content-addressed store, hash-verified

313// --- Helper Components for Visual Cleanliness ---
314
315const TabButton = ({ active, onClick, icon, label }: { active: boolean; onClick: () => void; icon: React.ReactNode; label: string }) => (
316 <button
317 onClick={onClick}
318 className={`flex items-center gap-2 px-4 py-2 text-xs font-medium transition-all rounded-t-md border-t border-x -mb-px relative top-px ${
319 active
320 ? 'bg-white border-neutral-200 text-neutral-900 shadow-[0_-2px_6px_rgba(0,0,0,0.02)] z-10'
321 : 'bg-transparent border-transparent text-neutral-500 hover:text-neutral-700 hover:bg-neutral-200/50'
322 }`}
323 >
324 {icon}
325 <span>{label}</span>
326 </button>
327);
328
329const CodeLine = ({ num, children, isModified }: { num: number; children?: React.ReactNode; isModified?: boolean }) => (
330 <div className={`flex gap-4 px-4 hover:bg-neutral-50/80 transition-colors ${isModified ? 'text-neutral-900' : ''}`}>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected