dashpresshq/dashpress

View on GitHub
src/backend/menu/portal/main.ts

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import { noop } from "@/shared/lib/noop";
import type { INavigationMenuItem } from "@/shared/types/menu";

import type { IBaseNavigationMenuApiService } from "../types";

export const portalCheckIfIsMenuAllowed = async (
  menuItem: INavigationMenuItem,
  userRole: string
): Promise<boolean | undefined> => {
  noop(menuItem, userRole);
  return undefined;
};

export const getPortalMenuItems = (
  userRole: string,
  navigationMenuApiService: IBaseNavigationMenuApiService
): Promise<INavigationMenuItem[] | null> => {
  noop(userRole, navigationMenuApiService);
  return null;
};