/* global wdpI18n */
import React from 'react'
import TimeChart from './charts/time-chart'
import NumberChart from './charts/number-chart'
import PercentageChart from './charts/percentage-chart'
export default class ChartContent extends React.PureComponent {
constructor(props) {
super(props);
}
/**
* Get the chart type component to render it.
*
*@since 4.11.6
* @return {JSX.Element}
*/
renderChart() {
let content = this.props.data?.chart;
if (!content) {
content = {};
}
switch (this.props.current) {
case 'page_time':
case 'visit_time':
return (
{wdpI18n.labels.empty}
{wdpI18n.desc.empty}