NamH 31397de2d1
Refactor/deprecate hugging face ext (#2620)
* refactor: deprecate huggingface extension

Signed-off-by: James <james@jan.ai>
2024-04-16 17:23:45 +07:00

24 lines
551 B
TypeScript

import { SettingComponentProps } from '@janhq/core'
import SettingComponentBuilder from '../../Chat/ModelSetting/SettingComponent'
type Props = {
componentData: SettingComponentProps[]
onValueChanged: (key: string, value: string | number | boolean) => void
disabled?: boolean
}
const EngineSetting: React.FC<Props> = ({
componentData,
onValueChanged,
disabled = false,
}) => (
<SettingComponentBuilder
componentProps={componentData}
disabled={disabled}
onValueUpdated={onValueChanged}
/>
)
export default EngineSetting