turkmen-expo/lib/database/pathnames.ts

188 lines
4.9 KiB
TypeScript
Raw Normal View History

interface MenuItemType {
titleKey: string;
link: string;
}
2025-10-12 17:42:17 +00:00
interface MenuType {
pathnameKey: string;
2025-10-12 17:42:17 +00:00
company?: boolean;
members?: boolean;
visitors?: boolean;
news?: boolean;
services?: boolean;
info: MenuItemType[];
2025-10-12 17:42:17 +00:00
}
export const sidebarData: MenuType[] = [
{
company: true,
pathnameKey: "sidebar.company",
2025-10-12 17:42:17 +00:00
info: [
{ titleKey: "sidebar.aboutUs", link: "/company/aboutus" },
2025-10-12 17:42:17 +00:00
],
},
{
members: true,
pathnameKey: "sidebar.participants",
2025-10-12 17:42:17 +00:00
info: [
{ titleKey: "sidebar.participantsInfo", link: "/members" },
{ titleKey: "sidebar.participantsApplication", link: "/members/bid" },
{ titleKey: "sidebar.participantsRules", link: "/members/members-rules" },
2025-10-12 17:42:17 +00:00
],
},
{
news: true,
pathnameKey: "sidebar.news",
info: [{ titleKey: "sidebar.news", link: "/news" }],
2025-10-12 17:42:17 +00:00
},
{
visitors: true,
pathnameKey: "sidebar.visitors",
2025-10-12 17:42:17 +00:00
info: [
{ titleKey: "sidebar.visitorsInfo", link: "/visitors" },
{ titleKey: "sidebar.visitorsRules", link: "/visitors/rules-for-visitors" },
2025-10-12 17:42:17 +00:00
],
},
{
services: true,
pathnameKey: "sidebar.services",
2025-10-12 17:42:17 +00:00
info: [
{ titleKey: "sidebar.organizeExhibitions", link: "/services/organization" },
{ titleKey: "sidebar.b2bMeetings", link: "/services/meetings" },
{ titleKey: "sidebar.businessMissions", link: "/services/missions" },
{ titleKey: "sidebar.marketingServices", link: "/services/advertising" },
{ titleKey: "sidebar.hybridEvents", link: "/services/hybrid-organizations" },
{ titleKey: "sidebar.certification", link: "/services/certification" },
{ titleKey: "sidebar.forwarding", link: "/services/forwarding" },
{ titleKey: "sidebar.outsourcing", link: "/services/outsourcing" },
{ titleKey: "sidebar.personalTraining", link: "/services/personnel-training" },
{ titleKey: "sidebar.businessTours", link: "/services/business-tours" },
{ titleKey: "sidebar.additionalServices", link: "/services/additional" },
2025-10-12 17:42:17 +00:00
],
},
];
interface HeaderType {
titleKey: string;
link: string;
id: number;
}
export const headerMenu: HeaderType[] = [
{ titleKey: "nav.about", link: "/company/aboutus", id: 1 },
{ titleKey: "nav.news", link: "/news", id: 2 },
{ titleKey: "nav.faq", link: "/faq", id: 3 },
{ titleKey: "nav.contacts", link: "/contacts", id: 4 },
];
export const headerMenu2: HeaderType[] = [
{ titleKey: "nav.calendar", link: "/calendar", id: 1 },
{ titleKey: "nav.services", link: "/services/organization", id: 2 },
{ titleKey: "nav.about", link: "/company/aboutus", id: 3 },
{ titleKey: "nav.news", link: "/news", id: 4 },
{ titleKey: "nav.contacts", link: "/contacts", id: 5 },
];
interface FooterMenuType {
titleKey: string;
link: string;
one?: boolean;
}
export const footerMenu: FooterMenuType[] = [
{ titleKey: "nav.calendar", link: "/calendar", one: true },
{ titleKey: "nav.participants", link: "/members" },
{ titleKey: "nav.visitors", link: "" },
{ titleKey: "nav.services", link: "/services/organization" },
];
export const footerMenu2: FooterMenuType[] = [
{ titleKey: "footer.territory", link: "" },
{ titleKey: "nav.about", link: "/company/aboutus" },
{ titleKey: "footer.pressCenter", link: "" },
{ titleKey: "nav.faq", link: "/faq" },
{ titleKey: "nav.contacts", link: "/contacts" },
{ titleKey: "footer.callCentre", link: "" },
];
2025-10-12 17:42:17 +00:00
interface BurgerDataTypes {
pathname: string;
company?: boolean;
members?: boolean;
calendar?: boolean;
faq?: boolean;
news?: boolean;
only?: boolean;
services?: boolean;
visitors?: boolean;
contacts?: boolean;
first?: boolean;
titleKey: string;
2025-10-12 17:42:17 +00:00
drop?: string;
info?: {
titleKey: string;
2025-10-12 17:42:17 +00:00
link: string;
}[];
}
export const burgerMenuData: BurgerDataTypes[] = [
{
pathname: "/calendar",
2025-10-12 17:42:17 +00:00
calendar: true,
only: true,
titleKey: "nav.calendar",
2025-10-12 17:42:17 +00:00
first: true,
},
{
members: true,
titleKey: "nav.participants",
pathname: "/members",
drop: "members",
2025-10-12 17:42:17 +00:00
first: true,
info: [
{ titleKey: "sidebar.participantsInfo", link: "/members" },
{ titleKey: "sidebar.participantsApplication", link: "/members/bid" },
2025-10-12 17:42:17 +00:00
],
},
{
pathname: "/visitors",
2025-10-12 17:42:17 +00:00
visitors: true,
only: true,
titleKey: "nav.visitors",
2025-10-12 17:42:17 +00:00
first: true,
},
{
pathname: "/services",
2025-10-12 17:42:17 +00:00
services: true,
only: true,
titleKey: "nav.services",
2025-10-12 17:42:17 +00:00
first: true,
},
{
pathname: "/faq",
2025-10-12 17:42:17 +00:00
faq: true,
only: true,
titleKey: "nav.faq",
2025-10-12 17:42:17 +00:00
},
{
pathname: "/contacts",
2025-10-12 17:42:17 +00:00
contacts: true,
only: true,
titleKey: "nav.contacts",
2025-10-12 17:42:17 +00:00
},
{
company: true,
titleKey: "nav.about",
pathname: "/company/aboutus",
drop: "company",
info: [{ titleKey: "sidebar.aboutUs", link: "/company/aboutus" }],
2025-10-12 17:42:17 +00:00
},
{
news: true,
titleKey: "nav.news",
pathname: "/news",
drop: "news",
info: [{ titleKey: "sidebar.news", link: "/news" }],
2025-10-12 17:42:17 +00:00
},
];