UNPKG

cluedin-widget

Version:

This project contains all the pages needed for browsing entities and searching them. The aim is to replace the CluedIn.Webapp project with this one when all the pages ( including the Admin page ) will be ported to REACT.

20 lines (13 loc) 659 B
import wms from '../../wms'; export function getName(entityType) { let entityConfigPerEntityType = wms.getEntityConfiguration(entityType); return entityConfigPerEntityType ? entityConfigPerEntityType.displayName : entityType; } export function getNameWithArticle(entityType) { let entityConfigPerEntityType = wms.getEntityConfiguration(entityType); return entityConfigPerEntityType ? entityConfigPerEntityType.displayNameWithArticle : entityType; } export function getIcon(entityType) { let entityConfigPerEntityType = wms.getEntityConfiguration(entityType); return entityConfigPerEntityType ? entityConfigPerEntityType.icon : entityType; }