{"version":3,"file":"RedirectHome.BbmePlJg.mjs","names":[],"sources":["https:/framerusercontent.com/modules/3QU3khqiFcnZnevB6sio/9owQYHqMe5dotwwswK8l/RedirectHome.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Redirect\n *\n * Client-side forward: any visitor landing on this page is sent to the\n * target path (\"/\" by default). Used to keep old shared links working\n * after a page was removed or renamed (e.g. /titles -> /, /archive -> /index).\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function RedirectHome({to=\"/\"}){useEffect(()=>{if(typeof window!==\"undefined\"&&window.location.pathname!==to){window.location.replace(to);}},[to]);return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",minHeight:\"100vh\",background:\"#1c1a19\"}});}addPropertyControls(RedirectHome,{to:{type:ControlType.String,title:\"Redirect To\",defaultValue:\"/\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"RedirectHome\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./RedirectHome.map"],"mappings":"wLASG,SAAwB,EAAa,CAAC,KAAG,KAAK,CAAoH,OAAnH,MAAc,CAAW,IAAS,QAAa,EAAO,SAAS,WAAW,GAAI,EAAO,SAAS,QAAQ,CAAE,CAAG,EAAE,CAAC,CAAE,CAAC,EAAsB,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,UAAU,QAAQ,WAAW,SAAS,CAAC,CAAC,CAAE,qBATvO,IAA6B,IAAoD,EASuJ,EAAoB,EAAa,CAAC,GAAG,CAAC,KAAK,EAAY,OAAO,MAAM,cAAc,aAAa,GAAG,CAAC,CAAC"}