import { Card, CardHeader, CardBody, CardFooter, Typography, } from "@material-tailwind/react"; import PropTypes from "prop-types"; export function StatisticsCard({ color, icon, title, value, footer }) { return ( {icon} {title} {value} {footer && ( {footer} )} ); } StatisticsCard.defaultProps = { color: "blue", footer: null, }; StatisticsCard.propTypes = { color: PropTypes.oneOf([ "white", "blue-gray", "gray", "brown", "deep-orange", "orange", "amber", "yellow", "lime", "light-green", "green", "teal", "cyan", "light-blue", "blue", "indigo", "deep-purple", "purple", "pink", "red", ]), icon: PropTypes.node.isRequired, title: PropTypes.node.isRequired, value: PropTypes.node.isRequired, footer: PropTypes.node, }; StatisticsCard.displayName = "/src/widgets/cards/statistics-card.jsx"; export default StatisticsCard;