open-notebook / frontend /src /lib /hooks /use-navigation.ts
baveshraam's picture
FIX: SurrealDB 2.0 migration syntax and Frontend/CORS link
f871fed
import { useNavigationStore } from '@/lib/stores/navigation-store'
export function useNavigation() {
const store = useNavigationStore()
return {
setReturnTo: store.setReturnTo,
clearReturnTo: store.clearReturnTo,
getReturnPath: store.getReturnPath,
getReturnLabel: store.getReturnLabel,
returnTo: store.returnTo
}
}