MCPcopy
hub / github.com/mckaywrigley/ai-code-translator / APIKeyInput

Function APIKeyInput

components/APIKeyInput.tsx:6–16  ·  view source on GitHub ↗
({ apiKey, onChange })

Source from the content-addressed store, hash-verified

4}
5
6export 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};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected