import type { ReactNode } from "react"; /** * Shared public error / empty-route composition. * Used by route error.tsx and not-found.tsx (inside the app shell). */ export function ErrorScreen({ code, title, subtitle, body, actions, footer, }: { code: string; title: string; subtitle: string; body: string; actions: ReactNode; footer?: ReactNode; }) { return (

{code}

{title}

{subtitle}

{body}

{actions}
{footer ?
{footer}
: null}
); }