UNPKG

cluedin-widget

Version:

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

27 lines (23 loc) 940 B
import React, { Component } from 'react' import ProviderIcons from '../entityRelated/providerIcons.jsx' import EntityIcon from '../entityRelated/EntityIcon.jsx' import EntityLink from '../entityRelated/EntityLink.jsx' import EntityLogo from '../entityRelated/EntityLogo.jsx' export default class Tool extends Component { render() { const { entity } = this.props; let IconHtml = (<EntityIcon entityType={entity.data.entityType}></EntityIcon>); if ( entity.hasLogo ) { IconHtml = (<EntityLogo url={entity.logoUrl}></EntityLogo>); } return ( <div className="cluedIn_entity_row"> <div className="cluedIn_entity_row_sub"> {IconHtml} <EntityLink entity={entity}></EntityLink> <a href={entity.data.uri} target="__blank">(view website)</a> </div> </div> ); } }