import { Theme, Typography, Box } from '@mui/material'; import { Link } from 'react-router-dom'; const SysCard = (data: { title: string; count: number | string; des?: string; link?: string; }) => { return ( ({ minWidth: 'auto', gap: theme.spacing(1), backgroundColor: theme.palette.background.paper, padding: theme.spacing(2), border: `1px solid ${theme.palette.divider}`, cursor: 'pointer', borderRadius: 2, display: 'flex', flexDirection: 'column', alignItems: 'flex-start', transition: 'box-shadow 0.2s', '& a': { textDecoration: 'none', color: theme.palette.text.primary, }, })} > {data.link ? ( {data.count} ({ m: 0, fontSize: 14, lineHeight: 1.5, color: theme.palette.text.secondary, })} > {data.title} {data.des ? ( {data.des} ) : null} ) : ( <> {data.count} ({ m: 0, fontSize: 14, lineHeight: 1.5, color: theme.palette.text.secondary, })} > {data.title} {data.des ? ( {data.des} ) : null} )} ); }; export default SysCard;