asb_cloud_front/src/pages/AccessDenied.jsx

19 lines
465 B
React
Raw Normal View History

import { memo } from 'react'
import { Link } from 'react-router-dom'
export const AccessDenied = memo(() => (
<div style={{
width: '100vw',
height: '100vh',
display: 'flex',
flexDirection: 'column',
justifyContent: 'center',
alignItems: 'center'
}}>
<h2>Доступ запрещён</h2>
<Link to={'/login'}>На страницу входа</Link>
</div>
))
export default AccessDenied