### What problem does this PR solve? feat: change all file names to lowercase #1574 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
19 lines
500 B
TypeScript
19 lines
500 B
TypeScript
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;
|