MCPcopy Create free account
hub / github.com/aetherstate/GODMOD3.AI / TabButton

Function TabButton

SettingsModal.tsx:190–212  ·  view source on GitHub ↗
({
  icon,
  label,
  active,
  onClick
}: {
  icon: React.ReactNode
  label: string
  active: boolean
  onClick: () => void
})

Source from the content-addressed store, hash-verified

188}
189
190function TabButton({
191 icon,
192 label,
193 active,
194 onClick
195}: {
196 icon: React.ReactNode
197 label: string
198 active: boolean
199 onClick: () => void
200}) {
201 return (
202 <button
203 onClick={onClick}
204 className={`w-full flex items-center gap-2 px-3 py-2 rounded-lg
205 transition-colors text-sm
206 ${active ? 'bg-theme-accent theme-primary' : 'hover:bg-theme-accent/50'}`}
207 >
208 {icon}
209 {label}
210 </button>
211 )
212}
213
214function APIKeyTab() {
215 const { apiKey, setApiKey } = useStore()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected