import { Box, Center, Heading, Link, Text } from '@chakra-ui/react';
import { MdControlCamera } from 'react-icons/md';

import { PageLayoutInfoCenter } from '@/components/Layout/PageLayoutInfoCenter';
import { TopBar } from '@/components/TopBar/TopBar';

export const Error401 = () => {
  return (
    <>
      <TopBar />
      <PageLayoutInfoCenter padding="25px">
        <Center>
          <MdControlCamera
            style={{ width: '250px', height: '250px', color: 'orange' }}
          />
        </Center>
        <Box textAlign="center">
          <Heading>Error 401</Heading>
          <Text color="red.600">
            You are not authorized to access this content.
          </Text>
          <Link as="a" href="/">
            Back to Homepage
          </Link>
        </Box>
      </PageLayoutInfoCenter>
    </>
  );
};
