balibabu
fix: remove Top K in retrieval testing #770 and if the document parsing fails, the error message returned by the backend is displayed (#782)
e890f0a
raw
history blame
499 Bytes
import { Alert, Flex } from 'antd';
import { useTranslate } from '@/hooks/commonHooks';
import React from 'react';
import styles from './index.less';
const FileError = ({ children }: React.PropsWithChildren) => {
const { t } = useTranslate('fileManager');
return (
<Flex align="center" justify="center" className={styles.errorWrapper}>
<Alert
type="error"
message={<h2>{children || t('fileError')}</h2>}
></Alert>
</Flex>
);
};
export default FileError;