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