import React from 'react'; import PropTypes from 'prop-types'; import { translate as __ } from 'foremanReact/common/I18n'; import ConnectedChartBox from 'foremanReact/components/ChartBox'; import './StatisticsChartsListStyles.scss'; const StatisticsChartsList = ({ data }) => { const chartBoxes = Object.values(data).map(chart => ( )); return (
{chartBoxes}
); }; StatisticsChartsList.propTypes = { data: PropTypes.oneOfType([PropTypes.array, PropTypes.object]), }; StatisticsChartsList.defaultProps = { data: [], }; export default StatisticsChartsList;