import { ReactNode } from "react" // @mui material components import Card from "@mui/material/Card" import Divider from "@mui/material/Divider" import Icon from "@mui/material/Icon" // ThreeD Garden components import MDBox from "~/components/mui/MDBox" import MDTypography from "~/components/mui/MDTypography" // Declaring props types for DefaultInfoCard interface Props { color?: | "primary" | "secondary" | "info" | "success" | "warning" | "error" | "dark" icon: ReactNode title: string description?: string value?: string | number [key: string]: any } function DefaultInfoCard({ color, icon, title, description, value, }: Props): JSX.Element { return ( {icon} {title} {description && ( {description} )} {description && !value ? null : } {value && ( {value} )} ) } // Declaring default props for DefaultInfoCard DefaultInfoCard.defaultProps = { color: "info", value: "", description: "", } export default DefaultInfoCard