// material-ui import { styled } from '@mui/material/styles'; import { Grid, Typography } from '@mui/material'; // project imports import MainCard from './MainCard'; import { GenericCardProps } from 'types'; // styles const IconWrapper = styled('div')({ width: '50px', height: '50px', display: 'inline-flex', alignItems: 'center', position: 'relative', borderRadius: '50%', overflow: 'hidden', justifyContent: 'center', '& span:first-child': { position: 'absolute', width: '100%', height: '100%', top: '0', left: '0', opacity: '0.2', zIndex: '1' }, '& span': { width: '20px', height: '20px' }, '& svg': { width: '20px', height: '20px', position: 'relative', zIndex: '5' } }); export interface RoundIconCardProps { primary: string; secondary: string; content: string; iconPrimary: GenericCardProps['iconPrimary']; color: string; } // ============================|| ROUND ICON CARD ||============================ // const RoundIconCard = ({ primary, secondary, content, iconPrimary, color }: RoundIconCardProps) => { const IconPrimary = iconPrimary!; const primaryIcon = iconPrimary ? : null; return ( {primary} {secondary} {content} {primaryIcon} ); }; export default RoundIconCard;