interface MenuItemType {
  titleKey: string;
  link: string;
}

interface MenuType {
  pathnameKey: string;
  company?: boolean;
  members?: boolean;
  visitors?: boolean;
  news?: boolean;
  services?: boolean;
  info: MenuItemType[];
}

export const sidebarData: MenuType[] = [
  {
    company: true,
    pathnameKey: "sidebar.company",
    info: [
      { titleKey: "sidebar.aboutUs", link: "/company/aboutus" },
    ],
  },
  {
    members: true,
    pathnameKey: "sidebar.participants",
    info: [
      { titleKey: "sidebar.participantsInfo", link: "/members" },
      { titleKey: "sidebar.participantsApplication", link: "/members/bid" },
      { titleKey: "sidebar.participantsRules", link: "/members/members-rules" },
    ],
  },
  {
    news: true,
    pathnameKey: "sidebar.news",
    info: [{ titleKey: "sidebar.news", link: "/news" }],
  },
  {
    visitors: true,
    pathnameKey: "sidebar.visitors",
    info: [
      { titleKey: "sidebar.visitorsInfo", link: "/visitors" },
      { titleKey: "sidebar.visitorsRules", link: "/visitors/rules-for-visitors" },
    ],
  },
  {
    services: true,
    pathnameKey: "sidebar.services",
    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" },
    ],
  },
];

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: "" },
];

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;
  drop?: string;
  info?: {
    titleKey: string;
    link: string;
  }[];
}

export const burgerMenuData: BurgerDataTypes[] = [
  {
    pathname: "/calendar",
    calendar: true,
    only: true,
    titleKey: "nav.calendar",
    first: true,
  },
  {
    members: true,
    titleKey: "nav.participants",
    pathname: "/members",
    drop: "members",
    first: true,
    info: [
      { titleKey: "sidebar.participantsInfo", link: "/members" },
      { titleKey: "sidebar.participantsApplication", link: "/members/bid" },
    ],
  },
  {
    pathname: "/visitors",
    visitors: true,
    only: true,
    titleKey: "nav.visitors",
    first: true,
  },
  {
    pathname: "/services",
    services: true,
    only: true,
    titleKey: "nav.services",
    first: true,
  },
  {
    pathname: "/faq",
    faq: true,
    only: true,
    titleKey: "nav.faq",
  },
  {
    pathname: "/contacts",
    contacts: true,
    only: true,
    titleKey: "nav.contacts",
  },
  {
    company: true,
    titleKey: "nav.about",
    pathname: "/company/aboutus",
    drop: "company",
    info: [{ titleKey: "sidebar.aboutUs", link: "/company/aboutus" }],
  },
  {
    news: true,
    titleKey: "nav.news",
    pathname: "/news",
    drop: "news",
    info: [{ titleKey: "sidebar.news", link: "/news" }],
  },
];
