dashpresshq/dashpress

View on GitHub
src/frontend/_layouts/app/NavigationSideBar/portal/main.ts

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import type { MessageDescriptor } from "@lingui/core";
import { msg } from "@lingui/macro";

import { NAVIGATION_LINKS } from "@/frontend/lib/routing/links";
import type { SystemIconsKeys } from "@/shared/constants/Icons";
import type { PortalSystemLinks } from "@/shared/constants/portal/menu/main";

export const useConstantNavigationMenuItems = (): Array<{
  systemIcon: SystemIconsKeys;
  label: MessageDescriptor;
  action: string;
}> => {
  return [
    {
      label: msg`Menu Settings`,
      action: NAVIGATION_LINKS.SETTINGS.MENU,
      systemIcon: "List",
    },
  ];
};

export const PORTAL_SYSTEM_LINK_CONFIG_LINKS: Record<
  PortalSystemLinks,
  {
    link: string;
    permission?: string;
    messages: MessageDescriptor;
  }
> = {};