feat: Add message_history_window_size to CategorizeForm #1739 (#2826)

### What problem does this PR solve?

feat: Add message_history_window_size to CategorizeForm #1739
### Type of change

- [ ] Bug Fix (non-breaking change which fixes an issue)
- [x] New Feature (non-breaking change which adds functionality)
- [ ] Documentation Update
- [ ] Refactoring
- [ ] Performance Improvement
- [ ] Other (please describe):
This commit is contained in:
balibabu
2024-10-14 15:18:45 +08:00
committed by GitHub
parent b164116277
commit 85b359556e
4 changed files with 32 additions and 8 deletions

View File

@ -0,0 +1,23 @@
import { Form, InputNumber } from 'antd';
import { useTranslation } from 'react-i18next';
const MessageHistoryWindowSizeItem = ({
initialValue,
}: {
initialValue: number;
}) => {
const { t } = useTranslation('flow');
return (
<Form.Item
name={'message_history_window_size'}
label={t('messageHistoryWindowSize')}
initialValue={initialValue}
tooltip={t('messageHistoryWindowSizeTip')}
>
<InputNumber style={{ width: '100%' }} />
</Form.Item>
);
};
export default MessageHistoryWindowSizeItem;