import * as React from 'react' import { cn } from '../../lib/utils' export interface NotFoundProps { /** Large code shown above the title (e.g. "404"). Pass null to hide. */ code?: string | null /** Heading. */ title?: string /** Body copy. */ description?: string /** * Primary action. Provide your own element (e.g. a Next ``) so the * package stays free of a hard `next/link` dependency. Defaults to a plain * anchor to `/`. */ action?: React.ReactNode /** Override the outer wrapper className. */ className?: string /** Extra content rendered below the action (e.g. a secondary link). */ children?: React.ReactNode } /** * Default 404 surface for an app's `app/not-found.tsx`. * * Neutral, brandable, and SSR-safe (no client hooks). Pass an `action` node — * typically a Next `` — for app-aware navigation. * * @example * // app/not-found.tsx * import Link from 'next/link' * import { NotFound } from '@startsimpli/ui' * export default function Page() { * return ( * Go home} /> * ) * } */ export function NotFound({ code = '404', title = 'Page not found', description = "The page you're looking for doesn't exist or has been moved.", action, className, children, }: NotFoundProps) { return (
{code != null && (

{code}

)}

{title}

{description}

{action ?? ( Go home )}
{children}
) }