import React, { useState } from 'react'; import { Eye, EyeOff, Key, RefreshCw } from 'lucide-react'; export default function Settings({ apiKey, setApiKey, backendStatus, checkBackendStatus }) { const [showKey, setShowKey] = useState(false); return (
Saved locally in your browser
setApiKey(e.target.value)} placeholder={backendStatus.gemini_api_key_configured ? "Using backend environment variable" : "Enter your GEMINI_API_KEY..."} style={{ width: '100%', paddingRight: '2.5rem' }} />
Gemini Connection: {backendStatus.gemini_api_key_configured || apiKey ? 'Configured' : 'Missing API Key'}
); }