import{j as t}from"./query-ATBhtd3K.js";import{r as a}from"./vendor-EnoIVk-c.js";import{a as l}from"./routing-nZgBtxly.js";import{u as m}from"./i18n-BYxb14hm.js";import"./index-D4SjcYxX.js";function g(){const{t:c}=m(),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{g as default};
//# sourceMappingURL=page-CEDbSdpB.js.map
