import React from 'react'; // material-ui import { useTheme } from '@mui/material/styles'; import { Box, Grid, Typography, useMediaQuery } from '@mui/material'; // third party import Chart, { Props as ChartProps } from 'react-apexcharts'; // project imports import MainCard from './MainCard'; // =============================|| SEO CHART CARD ||============================= // export interface SeoChartCardProps { chartData: ChartProps; value?: string | number; title?: string; icon?: React.ReactNode | string; type?: number; } const SeoChartCard = ({ chartData, value, title, icon, type }: SeoChartCardProps) => { const theme = useTheme(); const matchDownMd = useMediaQuery(theme.breakpoints.down('lg')); return ( {value && ( {value} )} {(title || icon) && ( {title && {title}} {icon && ( {icon} )} )} {chartData && ( )} ); }; export default SeoChartCard;