UNPKG

@lfai/egeria-js-commons

Version:

Common module for storing static data such as key value objects, SVGs, icon mappings, API urls.

10 lines (9 loc) 292 B
import { lineageViewsTypesMapping } from './navigation-types-mappings'; export const hasTab = (type, tabName) => { if (Object.keys(lineageViewsTypesMapping).includes(type)) { return lineageViewsTypesMapping[type].includes(tabName); } else { return false; } };