import React from 'react'; import { LogoBase64, SunIcon, MoonIcon, RefreshIcon, SignOutIcon } from './Icons'; import { useTheme } from '../context/ThemeContext'; import type { AIProvider } from '../types/providers'; interface HeaderProps { onReset: () => void; onClearKey: () => void; hasKey: boolean; provider?: AIProvider; } export const Header: React.FC = ({ onReset, onClearKey, hasKey, provider }) => { const { theme, toggleTheme } = useTheme(); const providerColors: Record = { gemini: 'from-blue-500 to-indigo-600', openai: 'from-green-500 to-emerald-600', anthropic: 'from-orange-500 to-amber-600', azure: 'from-blue-600 to-cyan-600' }; const providerNames: Record = { gemini: 'Gemini', openai: 'OpenAI', anthropic: 'Claude', azure: 'Azure' }; return (
SteelCheck Logo

SteelCheck

{hasKey && provider && (
{providerNames[provider]}
)} {hasKey && ( )}
); };