zxsipola123456's picture
Upload 769 files
ab2ded1 verified
raw
history blame
803 Bytes
import { Popover, Select } from 'antd';
import LlmSettingItems from '../llm-setting-items';
interface IProps {
id?: string;
value?: string;
onChange?: (value: string) => void;
}
const LLMSelect = ({ id, value, onChange }: IProps) => {
const content = (
<div style={{ width: 400 }}>
<LlmSettingItems
formItemLayout={{ labelCol: { span: 10 }, wrapperCol: { span: 14 } }}
></LlmSettingItems>
</div>
);
return (
<Popover
content={content}
trigger="click"
placement="left"
arrow={false}
destroyTooltipOnHide
>
<Select
style={{ width: '100%' }}
dropdownStyle={{ display: 'none' }}
id={id}
value={value}
onChange={onChange}
/>
</Popover>
);
};
export default LLMSelect;