({
icon,
label,
active,
onClick
}: {
icon: React.ReactNode
label: string
active: boolean
onClick: () => void
})
| 188 | } |
| 189 | |
| 190 | function 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 | |
| 214 | function APIKeyTab() { |
| 215 | const { apiKey, setApiKey } = useStore() |
nothing calls this directly
no outgoing calls
no test coverage detected