import{j as t}from"./index-Bsr9DJ3G.js";import{r as a}from"./vendor-DJo4KD8w.js";import{u as l}from"./routing-DCIgrT7s.js";import{u}from"./i18n-BbpF47i1.js";function p(){const{t:c}=u(),s=(e,i)=>c(`Sidebar.${e}`,i),r=l(),[o,n]=a.useState(!0);return a.useEffect(()=>{const e=localStorage.getItem("lastViewedDocumentId");e?r.replace(`/know/resource/${e}`):r.replace("/know/discover"),n(!1)},[r]),o?t.jsx("div",{className:"flex items-center justify-center py-20",children:t.jsx("p",{className:"text-gray-600 dark:text-gray-300",children:s("loading")})}):t.jsx("div",{className:"flex items-center justify-center py-20",children:t.jsx("p",{className:"text-gray-600 dark:text-gray-300",children:s("redirecting")})})}export{p as default};
//# sourceMappingURL=page-BIyG0SOs.js.map
