Download client/src/components/Input/SetKeyDialog/OtherConfig.tsx from Zhitomir/chat: direct link, hf CLI and curl.
- Browser
- Download file 541 Bytes
-
https://huggingface.co/spaces/Zhitomir/chat/resolve/main/client/src/components/Input/SetKeyDialog/OtherConfig.tsx
- Command line
-
hf download hf://spaces/Zhitomir/chat/client/src/components/Input/SetKeyDialog/OtherConfig.tsx
-
curl -L -o OtherConfig.tsx https://huggingface.co/spaces/Zhitomir/chat/resolve/main/client/src/components/Input/SetKeyDialog/OtherConfig.tsx
541 Bytes
| import React from 'react'; | |
| import InputWithLabel from './InputWithLabel'; | |
| import type { TConfigProps } from '~/common'; | |
| import { useLocalize } from '~/hooks'; | |
| const OtherConfig = ({ userKey, setUserKey, endpoint }: TConfigProps) => { | |
| const localize = useLocalize(); | |
| return ( | |
| <InputWithLabel | |
| id={endpoint} | |
| value={userKey ?? ''} | |
| onChange={(e: React.ChangeEvent<HTMLInputElement>) => setUserKey(e.target.value ?? '')} | |
| label={localize('com_endpoint_config_key_name')} | |
| /> | |
| ); | |
| }; | |
| export default OtherConfig; | |