Faisal Amir 314cb03693
feat: stop word model setting (#4113)
* feat: stop word model setting

* chore: update test tag input

* chore: handle UI when no stop word

* chore: fix types of value tag input
2024-11-25 21:17:16 +07:00

29 lines
582 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 | string[]
) => void
disabled?: boolean
}
const ModelSetting = ({
componentProps,
onValueChanged,
disabled = false,
}: Props) => (
<SettingComponentBuilder
disabled={disabled}
componentProps={componentProps}
onValueUpdated={onValueChanged}
/>
)
export default React.memo(ModelSetting)