// material-ui
import { useTheme } from '@mui/material/styles';
import { Card, CardContent, Grid, Typography, useMediaQuery } from '@mui/material';
// types
import { GenericCardProps } from 'types';
// =============================|| REVENUE CARD ||============================= //
export interface RevenueCardProps extends GenericCardProps {}
const RevenueCard = ({ primary, secondary, content, iconPrimary, color }: RevenueCardProps) => {
const theme = useTheme();
const matchDownXs = useMediaQuery(theme.breakpoints.down('sm'));
const IconPrimary = iconPrimary!;
const primaryIcon = iconPrimary ? : null;
return (
svg': { width: 100, height: 100, opacity: '0.5' },
[theme.breakpoints.down('sm')]: {
top: 13,
'&> svg': { width: 80, height: 80 }
}
}}
>
{primaryIcon}
{primary}
{secondary}
{content}
);
};
export default RevenueCard;