ragflow / web /src /components /message-history-window-size-item.tsx
balibabu
feat: Fix translation issue of message_history_window_size #1739 (#2828)
7d7dfcb
raw
history blame
550 Bytes
import { Form, InputNumber } from 'antd';
import { useTranslation } from 'react-i18next';
const MessageHistoryWindowSizeItem = ({
initialValue,
}: {
initialValue: number;
}) => {
const { t } = useTranslation();
return (
<Form.Item
name={'message_history_window_size'}
label={t('flow.messageHistoryWindowSize')}
initialValue={initialValue}
tooltip={t('flow.messageHistoryWindowSizeTip')}
>
<InputNumber style={{ width: '100%' }} />
</Form.Item>
);
};
export default MessageHistoryWindowSizeItem;