'use client' import * as React from 'react' import { buttonVariants } from '../Button' import { Typography } from '../Typography' import { Cube } from './Cube' import { Glitched404Text } from './Glitched404Text' import { handleMousemove } from './utils' export interface PageNotFoundProps { /** Optional replacement for the default "Return home" link. */ customLink?: React.ReactNode } /** * Full 404 screen with Chainlink-styled animated artwork and a default * secondary "Return home" action. */ export const PageNotFound = ({ customLink }: PageNotFoundProps) => { React.useEffect(() => { if (typeof window !== 'undefined') { window.document.title = `Page not found | Chainlink` window.document.body.addEventListener('mousemove', handleMousemove) return () => window.document.body.removeEventListener('mousemove', handleMousemove) } return undefined }, []) React.useEffect(() => { if (typeof window !== 'undefined') { window.scrollTo(0, 0) } }, []) return (
Page not found We can’t seem to find the page you’re looking for.
{customLink ? ( customLink ) : ( Return home )}
) }