diff --git a/src/pages/_error.tsx b/src/pages/_error.tsx index bb273f5..50529de 100644 --- a/src/pages/_error.tsx +++ b/src/pages/_error.tsx @@ -1,12 +1,33 @@ import { Footer } from '@/components/Footer' import { Button } from '@nextui-org/button' -import Link from 'next/link' import type { GetServerSideProps, GetServerSidePropsContext } from 'next' interface ErrorProps { statusCode: number } +const NotFound: React.FC = () => ( + <> +
Az keresett oldal nem található.
++ +
+ > +) + +const Unexpected: React.FC = () => ( + <> +Váratlan hiba történt.
++ +
+ > +) + const ErrorPage: React.FCAz keresett oldal nem található.
-- -
- > - ) : ( - <> -Váratlan hiba történt.
-- -
- > - )} + {(() => { + switch (statusCode) { + case 404: + return