import PropTypes from 'prop-types'; import ArrowDownIcon from '@heroicons/react/24/solid/ArrowDownIcon'; import ArrowUpIcon from '@heroicons/react/24/solid/ArrowUpIcon'; import UsersIcon from '@heroicons/react/24/solid/UsersIcon'; import { Avatar, Card, CardContent, Stack, SvgIcon, Typography } from '@mui/material'; import CpuChipIcon from '@heroicons/react/24/solid/CpuChipIcon'; export const OverviewTotalCustomers = (props) => { const { difference, positive = false, sx, value } = props; return ( Total Devices {value} {difference && ( {positive ? : } {difference}% Since last month )} ); }; OverviewTotalCustomers.propTypes = { difference: PropTypes.number, positive: PropTypes.bool, value: PropTypes.string.isRequired, sx: PropTypes.object };