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.
26 lines (22 loc) • 829 B
JSX
import React, { Component } from 'react';
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, openInNewTab } = 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 openInNewTab={openInNewTab} entity={entity}></EntityLink>
<a href={entity.data.uri} target="__blank">(view website)</a>
</div>
</div>
);
}
}