import { forwardRef, FC, ReactNode } from "react" // @mui material components import Icon from "@mui/material/Icon" // ThreeD Garden components import MDBox from "~/components/mui/MDBox" import MDTypography from "~/components/mui/MDTypography" // custom styles for the DefaultItem import defaultItemIconBox from "~/components/elements/Items/DefaultItem/styles" // Declaring props types for DefaultItem interface Props { color?: | "primary" | "secondary" | "info" | "success" | "warning" | "error" | "dark" icon: ReactNode title: string description: string [key: string]: any } const DefaultItem: FC = forwardRef( ({ color, icon, title, description, ...rest }, ref) => ( defaultItemIconBox(theme, { color })}> {icon} {title} {description} ) ) // Declaring default props for DefaultItem DefaultItem.defaultProps = { color: "info", } export default DefaultItem