TTime/frontend/src/Pages/UnauthorizedPage.tsx

22 lines
586 B
TypeScript

import Button from "../Components/Button";
/**
* Represents the Unauthorized page.
* @returns {JSX.Element} The JSX element representing the Unauthorized page.
*/
export default function UnauthorizedPage(): JSX.Element {
return (
<div className="flex flex-col items-center justify-center min-h-screen bg-white">
<h1 className="text-[30px]">Unauthorized</h1>
<a href="/">
<Button
text="Go to Home Page"
onClick={(): void => {
localStorage.clear();
}}
type="button"
/>
</a>
</div>
);
}