@hortiview/modulebase 0.0.11523 → 0.0.11938

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +0,0 @@
1
- /**
2
- *
3
- * @returns A function to navigate to a specific path
4
- */
5
- export declare const useNavigate: () => (path: string) => void;
@@ -1,27 +0,0 @@
1
- import { useEffect as o, useCallback as s } from "react";
2
- import { u as v } from "../chunk-IR6S3I6Y-BvQXS3A3.js";
3
- import { useBasePropsStore as r } from "../stores/BasePropsStore.js";
4
- const m = () => {
5
- const e = r(
6
- (t) => t.currentNavigationPath
7
- ), a = r(
8
- (t) => t.navigateTo
9
- ), i = r(
10
- (t) => t.navigateInHortiview
11
- ), n = v();
12
- return o(() => {
13
- e && n(e, { replace: !0 });
14
- }, [e, n]), s(
15
- (t) => {
16
- if (i) {
17
- i(t);
18
- return;
19
- }
20
- a && a(t);
21
- },
22
- [i, a]
23
- );
24
- };
25
- export {
26
- m as useNavigate
27
- };