import ErrorPage from '@/Components/ErrorPage';

/* Only renders for non-Inertia 419s (e.g. plain Blade form POSTs). Inertia
 * XHR 419s pass through unchanged in `bootstrap/app.php` so Inertia's own
 * session-expired dialog can fire — that's the right UX for in-app saves
 * (editor auto-save, admin form submits) where bouncing to a styled error
 * page would lose the user's draft work. */
export default function Error419() {
    return (
        <ErrorPage
            code={419}
            title="Session expired"
            headline="Your session"
            accentWord="expired"
            body="For security, sessions time out after a period of inactivity. Sign in again to pick up where you left off."
            secondaryCta={{ label: 'Sign in', href: '/login' }}
        />
    );
}
