{"version":3,"file":"static/chunks/pages/404-204a51361113936e.js","mappings":"qFACA,CAAAA,OAAAC,QAAA,CAAAD,OAAAC,QAAA,MAAAC,IAAA,EACA,OACA,WACA,OAAeC,EAAQ,MACvB,EACA,wHCFe,SAASC,IACtB,IAAMC,EAASC,CAAAA,EAAAA,EAAAA,SAAAA,IACT,CAAEC,IAAAA,CAAG,CAAE,CAAGC,CAAAA,EAAAA,EAAAA,EAAAA,IAEVC,EAAUF,EAAM,IAAQG,MAAA,CAAJH,GAAQ,IAMlC,MAJAI,CAAAA,EAAAA,EAAAA,SAAAA,EAAU,KACRN,EAAOO,OAAO,CAACH,EACjB,EAAG,CAACA,EAASJ,EAAO,EAEb,IACT","sources":["webpack://_N_E/?9cea","webpack://_N_E/./pages/404.tsx"],"sourcesContent":["\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/404\",\n function () {\n return require(\"private-next-pages/404.tsx\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/404\"])\n });\n }\n ","import { useMoonChain } from 'hooks/useMoonChainConfig';\nimport { useRouter } from 'next/router';\nimport { useEffect } from 'react';\n\nexport default function Custom404() {\n const router = useRouter();\n const { key } = useMoonChain();\n\n const endPath = key ? `/${key}` : '/';\n\n useEffect(() => {\n router.replace(endPath);\n }, [endPath, router]);\n\n return null;\n}\n"],"names":["window","__NEXT_P","push","__webpack_require__","Custom404","router","useRouter","key","useMoonChain","endPath","concat","useEffect","replace"],"sourceRoot":""}