import { Footer } from '@/components/Footer'
import { Button } from '@nextui-org/button'
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.FC = ({ statusCode }) => {
return (
<>
{statusCode}
{(() => {
switch (statusCode) {
case 404:
return
default:
return
}
})()}
>
)
}
export const getServerSideProps: GetServerSideProps = async (
context: GetServerSidePropsContext
) => ({
props: {
statusCode: context.res ? context.res.statusCode : 404,
},
})
export default ErrorPage