asb_cloud_front/src/pages/AccessDenied.jsx

19 lines
465 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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