import { FC } from 'react'; import { makeStyles } from '@material-ui/core'; import { SvgIcon } from '@material-ui/core'; import { BaseCardProps } from './Types'; import { ReactComponent } from '../../assets/imgs/pic.svg' const getStyles = makeStyles(() => ({ root: { backgroundColor: 'white', borderRadius: '8px', boxShadow: '3px 3px 10px rgba(0, 0, 0, 0.05)', boxSizing: 'border-box', height: '150px', padding: '16px', }, title: { color: '#82838E', fontSize: '14px', marginBottom: '5px', textTransform: 'capitalize', }, content: { color: '#010E29', fontSize: '20px', fontWeight: 600, lineHeight: '36px', }, desc: { color: '#82838E', fontSize: '14px', lineHeight: '36px', marginLeft: "8px", }, emptyRoot: { alignItems: 'center', display: 'flex', flexDirection: 'column', justifyContent: 'flex-start', '& > svg': { marginTop: '10px', width: '100%', } }, emptyTitle: { fontSize: '14px', marginTop: '14px', textTransform: 'capitalize', }, emptyDesc: { fontSize: '10px', color: '#82838E', marginTop: '8px', }, })); const BaseCard: FC = (props) => { const classes = getStyles(); const { children, title, content, desc } = props; return (
{title}
{content && {content}} {desc && {desc}} {!content && !desc && (
no data available There is no data to show you right now.
)} {children}
); }; export default BaseCard;