({ apiKey, onChange })
| 4 | } |
| 5 | |
| 6 | export const APIKeyInput: React.FC<Props> = ({ apiKey, onChange }) => { |
| 7 | return ( |
| 8 | <input |
| 9 | className="mt-1 h-[24px] w-[280px] rounded-md border border-gray-300 px-3 py-2 text-black shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm" |
| 10 | type="password" |
| 11 | placeholder="OpenAI API Key" |
| 12 | value={apiKey} |
| 13 | onChange={(e) => onChange(e.target.value)} |
| 14 | /> |
| 15 | ); |
| 16 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected