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.

17 lines (14 loc) 542 B
import React, { Component } from 'react'; import config from '../../config'; export default class EntityProfileImageLink extends Component { render() { const { entity } = this.props; const linkUrl = config.location.goToEntity( entity.id ); const profileUrl = entity.profileUrl || config.image.defaultProfile; return ( <a href={linkUrl} className="cluedIn_entity_profile_link"> <img className="cluedIn_img_responsive" src={profileUrl}/> </a> ); } };