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.

16 lines (14 loc) 473 B
import React, { Component } from "react"; import config from "../../config"; export default class EntitySubject extends Component { render() { const { entityType } = this.props; const entityConfig = config.entity[ entityType ]; const displayName = entityConfig ? entityConfig.displayName : entityType; return ( <span className="cluedin_entity_subject"> {displayName} </span> ); } };