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) 657 B
import entityConfig from '../config/entity'; export function getName( entityType ) { let entityConfigPerEntityType = entityConfig[ entityType ]; return entityConfigPerEntityType ? entityConfigPerEntityType.displayName : entityType; } export function getNameWithArticle( entityType ) { let entityConfigPerEntityType = entityConfig[ entityType ]; return entityConfigPerEntityType ? entityConfigPerEntityType.displayNameWithArticle : entityType; } export function getIcon( entityType ) { let entityConfigPerEntityType = entityConfig[ entityType ]; return entityConfigPerEntityType ? entityConfigPerEntityType.icon : entityType; }