Spaces:
Runtime error
Runtime error
Download components/APIKeyInput.tsx from deepcode-ai/code-translator: direct link, hf CLI and curl.
- Browser
- Download file 496 Bytes
-
https://huggingface.co/spaces/deepcode-ai/code-translator/resolve/main/components/APIKeyInput.tsx
- Command line
-
hf download hf://spaces/deepcode-ai/code-translator/components/APIKeyInput.tsx
-
curl -L -o APIKeyInput.tsx https://huggingface.co/spaces/deepcode-ai/code-translator/resolve/main/components/APIKeyInput.tsx
496 Bytes
| interface Props { | |
| apiKey: string; | |
| onChange: (apiKey: string) => void; | |
| } | |
| export const APIKeyInput: React.FC<Props> = ({ apiKey, onChange }) => { | |
| return ( | |
| <input | |
| 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" | |
| type="password" | |
| placeholder="OpenAI API Key" | |
| value={apiKey} | |
| onChange={(e) => onChange(e.target.value)} | |
| /> | |
| ); | |
| }; | |