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
