import { useState } from 'react'; const ApiKeyModal = ({ isOpen, onClose, onSubmit, initialValue = '' }) => { const [apiKey, setApiKey] = useState(initialValue); if (!isOpen) return null; return (
{ if (e.target.classList.contains('modalBackdrop')) { onClose(); } }} >

API Key Required

You've reached the limit of free Gemini API calls. To continue using this feature, please enter your own Gemini API key below. You can get a free API key from Google AI Studio.

{ e.preventDefault(); onSubmit(apiKey); }}>
setApiKey(e.target.value)} className="w-full px-3 py-2 border border-gray-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500" placeholder="AIza..." required />
); }; export default ApiKeyModal;