import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Card from '../ui/Card'; import Line from '../ui/Line'; import { getPercent } from '../../helpers/helpers'; import { STATUS_COLORS } from '../../helpers/constants'; class Statistics extends Component { render() { const { dnsQueries, blockedFiltering, replacedSafebrowsing, replacedParental, } = this.props; const filteringData = [this.props.history[1]]; const queriesData = [this.props.history[2]]; const parentalData = [this.props.history[3]]; const safebrowsingData = [this.props.history[4]]; return (