navigation

This commit is contained in:
Primakov Alexandr Alexandrovich
2024-10-22 20:50:36 +03:00
parent 580ce0f81d
commit 4440cf7fa2
8 changed files with 56 additions and 6 deletions
+20
View File
@@ -0,0 +1,20 @@
import { getNavigationsValue } from "@brojs/cli";
import { generatePath } from "react-router-dom";
const baseUrl = getNavigationsValue("nav1.main");
export const URLs = {
profile: {
isOn: Boolean(getNavigationsValue("link.nav1.profile")),
url: `${baseUrl}${getNavigationsValue("link.nav1.profile")}`,
getUrl() {
return this.url;
},
},
about: {
url: `${baseUrl}${getNavigationsValue("link.nav1.about")}`,
getUrl() {
return this.url;
},
},
};