import * as React from 'react' import { Button, Container, Group, Stack, Text, Title } from '@mantine/core' interface ErrorPageConfig { /** Código de error (404, 500, 403, etc.) */ code?: number | string /** Título del error */ title?: string /** Descripción del error */ description?: string /** Texto del botón de acción */ actionLabel?: string /** Callback del botón */ onAction?: () => void /** Acciones extra además del botón principal */ extraActions?: React.ReactNode } function ErrorPage({ code = 404, title = 'Page not found', description = 'The page you are looking for does not exist. You may have mistyped the address, or the page has been moved to another URL.', actionLabel = 'Go back to home', onAction, extraActions, }: ErrorPageConfig) { return ( {code} {title} {description} {extraActions} ) } export { ErrorPage } export type { ErrorPageConfig }