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.
27 lines (23 loc) • 940 B
JSX
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>
        );
    }
}