// material-ui import { useTheme } from '@mui/material/styles'; import { Card, Grid, SvgIconTypeMap, Typography, useMediaQuery } from '@mui/material'; import { OverridableComponent } from '@mui/material/OverridableComponent'; import { GenericCardProps } from 'types'; export interface SideIconCardProps extends GenericCardProps { iconPrimary: OverridableComponent> & { muiName: string }; secondarySub?: string; bgcolor?: string; } // =============================|| SIDE ICON CARD ||============================= // const SideIconCard = ({ iconPrimary, primary, secondary, secondarySub, color, bgcolor }: SideIconCardProps) => { const theme = useTheme(); const matchDownXs = useMediaQuery(theme.breakpoints.down('sm')); const IconPrimary = iconPrimary; const primaryIcon = iconPrimary !== undefined ? : null; return ( svg': { width: 32, height: 32 } }} align="center" > {primaryIcon} {primary} {secondary} {secondarySub}{' '} ); }; export default SideIconCard;