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

26 lines
569 B
TypeScript

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