File size: 500 Bytes
ab2ded1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { Alert, Flex } from 'antd';

import { useTranslate } from '@/hooks/common-hooks';
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;