2aa9d73325
集中保留原版权声明,移除文件头检查和全局测试忽略规则。验证:全量单测、受影响用例复测及静态检查通过。
25 lines
692 B
React
25 lines
692 B
React
import React from 'react';
|
|
import { Empty } from '@/components/ui';
|
|
import {
|
|
IllustrationNoAccess,
|
|
IllustrationNoAccessDark,
|
|
} from '../../components/common/illustrations';
|
|
import { useTranslation } from 'react-i18next';
|
|
|
|
const Forbidden = () => {
|
|
const { t } = useTranslation();
|
|
return (
|
|
<div className='flex justify-center items-center h-screen p-8'>
|
|
<Empty
|
|
image={<IllustrationNoAccess style={{ width: 250, height: 250 }} />}
|
|
darkModeImage={
|
|
<IllustrationNoAccessDark style={{ width: 250, height: 250 }} />
|
|
}
|
|
description={t('您无权访问此页面,请联系管理员')}
|
|
/>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default Forbidden;
|