import React from 'react'; import PropTypes from 'prop-types'; import { Card, CardBody, Badge } from './../../../../components'; import { TinyDonutChart } from "./TinyDonutChart" import { TinyBarChart } from "./TinyBarChart" import { randomArray } from './../../../../utilities'; const percents = [ "15", "25", "30", "35", "40", "45", "55", "60", "75", "80", "95" ]; const caret = [ "down", "up" ]; const CardSystem = (props) => (
{ randomArray(percents) }%
{ props.title }

{ randomArray(percents) } { props.unit }

); CardSystem.propTypes = { title: PropTypes.node, badgeColor: PropTypes.string, unit: PropTypes.node, pieColor: PropTypes.string }; CardSystem.defaultProps = { title: "Waiting...", badgeColor: "secondary", unit: "%", pieColor: "500" }; export { CardSystem };