{"ast":null,"code":"import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nimport React from 'react';\nimport Head from 'next/head';\n/**\r\n * Error page component\r\n */\n\nconst Error = ({\n  statusCode\n}) => {\n  return /*#__PURE__*/_jsxs(\"div\", {\n    children: [/*#__PURE__*/_jsx(Head, {\n      children: /*#__PURE__*/_jsx(\"title\", {\n        children: \"Error\"\n      })\n    }), /*#__PURE__*/_jsx(\"h1\", {\n      children: statusCode ? `An error ${statusCode} occurred on server` : 'An error occurred on client'\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"a\", {\n        href: \"/\",\n        children: \"Return to homepage\"\n      })\n    })]\n  });\n};\n\nError.getInitialProps = ({\n  res,\n  err\n}) => {\n  const statusCode = res ? res.statusCode : err ? err.statusCode : null;\n  return {\n    statusCode\n  };\n};\n\nexport default Error;","map":null,"metadata":{},"sourceType":"module"}