* feat: stop word model setting * chore: update test tag input * chore: handle UI when no stop word * chore: fix types of value tag input
29 lines
582 B
TypeScript
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)
|