mirror of
https://github.com/CyberL1/dlinux-dashboard.git
synced 2025-04-03 06:28:37 -04:00
8 lines
217 B
TypeScript
8 lines
217 B
TypeScript
import { ErrorResponse, useRouteError } from "react-router";
|
|
|
|
export default function ErrorPage() {
|
|
const error = useRouteError() as Error & ErrorResponse;
|
|
|
|
return <>Error: {error.statusText || error.message}</>;
|
|
}
|