UNPKG

cluedin-widget

Version:

This is the project for creating and managing widgets in CluedIn.

20 lines (17 loc) 605 B
import React, { Component } from 'react'; import iso from '../../iso'; import config from '../config'; export default class EntityIcon extends Component { render() { const { entityType } = this.props; const entityConfig = config.entity[ entityType ]; const icon = entityConfig ? entityConfig.icon : ''; return ( <div className="cluedIn_entity_icon_wrapper"> <div className="cluedIn_entity_icon"> <div dangerouslySetInnerHTML={{__html: icon}}></div> </div> </div> ); } };