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.

22 lines (19 loc) 585 B
import React, { Component } from 'react'; export default class CluedInButton extends Component { render() { const { message, click, link } = this.props; let classNames = "cluedIn_btn-primary cluedIn_btn"; if ( link ) { return <a className={classNames} href={link}>{message}</a> } return ( <button className={classNames} onClick={click}> {message} </button> ); } } CluedInButton.propTypes = { message: React.PropTypes.string, click: React.PropTypes.func.isRequired };