mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-18 09:20:15 +01:00
19 lines
541 B
TypeScript
19 lines
541 B
TypeScript
|
|
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;
|