{"version":3,"sources":["webpack://@kensho/public-api-docs/./src/layouts/Redirect.tsx"],"names":["Redirect","toPath","pageContext","isSSR","navigate","normalizePath","replace"],"mappings":"0NAWe,SAASA,EAAT,GAA+E,IAA9CC,EAA6C,EAA3DC,YAAcD,OAI9C,OAHKE,OACHC,eAASC,OAAcJ,GAAS,CAACK,SAAS,IAErC","file":"component---src-layouts-redirect-tsx-0bcc2b6db561b9725783.js","sourcesContent":["import {navigate} from 'gatsby'\n\nimport normalizePath from '../utils/normalizePath'\nimport {isSSR} from '../constants'\n\ninterface RedirectProps {\n pageContext: {\n toPath: string\n }\n}\n\nexport default function Redirect({pageContext: {toPath}}: RedirectProps): JSX.Element | null {\n if (!isSSR) {\n navigate(normalizePath(toPath), {replace: true})\n }\n return null\n}\n"],"sourceRoot":""}