8 lines
191 B
TypeScript
8 lines
191 B
TypeScript
|
import type { ErrorProps } from "next/error";
|
||
|
|
||
|
const Error = ({ statusCode = 0 }: ErrorProps): React.ReactElement => (
|
||
|
<>Error status code: {statusCode}</>
|
||
|
);
|
||
|
|
||
|
export default Error;
|