/* eslint-disable no-unused-vars */ import { ReactNode } from "react" // @mui material components import Card from "@mui/material/Card" import Grid from "@mui/material/Grid" // ThreeD Garden components import MDBox from "~/components/mui/MDBox" import MDTypography from "~/components/mui/MDTypography" // ThreeD Garden contexts import { useMaterialUIController } from "~/context" // Declaring prop types for DefaultStatisticsCard interface Props { title: string count: string | number percentage?: { color: | "primary" | "secondary" | "info" | "success" | "warning" | "error" | "dark" | "white" value: string | number label: string } dropdown?: { action: (...args: any) => void menu: ReactNode value: string } [key: string]: any } function DefaultStatisticsCard({ title, count, percentage, dropdown, }: Props): JSX.Element { const [controller] = useMaterialUIController() const { darkMode } = controller return ( {title} {count} {percentage.value}  {percentage.label} {dropdown && ( {dropdown.value} {dropdown.menu} )} ) } // Setting default values for the props of DefaultStatisticsCard DefaultStatisticsCard.defaultProps = { percentage: { color: "success", value: "", label: "", }, dropdown: false, } export default DefaultStatisticsCard