UNPKG

cluedin-widget

Version:

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

18 lines (15 loc) 574 B
import React, { Component } from 'react'; import iso from '../../../iso'; 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> ); } };