import{a as e}from"./rolldown-runtime-B0Z9INg1.js";import{i as t,n,t as r}from"./bundle-mjs-fcjm5Rpo.js";var i=e(t(),1),a=i.createContext(null);function o(e){return i.useContext(a)}function s(e){let t=o();return i.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function c(...e){return r(n(e))}export{a as i,s as n,o as r,c as t};