import React from 'react'; import {IDesk} from 'superdesk-api'; import {DonutChart} from 'superdesk-ui-framework/react'; interface IProps { desk: IDesk; label: string; total: number; donutData: any; } export class CardComponent extends React.Component { private chartOptions: any = { legend: false, tooltips: false, }; render() { return (

{this.props.desk.name}

  • {this.props.total}

    {this.props.label}

    { this.props.donutData ? (
    {this.props.total}
    ) : null }
  • {this.props.children}
); } }