{displayStatusCode}
{/*Oops, something went wrong.
Sorry, we couldn't find your page.
{statusCode === 404 ? "Sorry, we couldn't find your page." : "Oops, something went wrong."}
{error && ({error.message}
Go to homepage
import { Logo } from "@/components/shared/logo"; import { buttonVariants } from "@/components/ui/button"; import type { NextPageContext } from "next"; import Link from "next/link"; interface Props { statusCode: number; error?: Error; } export default function Custom404({ statusCode, error }: Props) { const displayStatusCode = statusCode || 400; console.log(error, statusCode); return (
Oops, something went wrong.
Sorry, we couldn't find your page.
{statusCode === 404 ? "Sorry, we couldn't find your page." : "Oops, something went wrong."}
{error && ({error.message}