import React, { memo } from 'react'; import Typography from '@mui/material/Typography'; import Card from '@mui/material/Card'; import Grid from '@mui/material/Grid'; import createClasses from './styles'; export interface InfoCardWithDateProps { /** * The top text of card. */ title?: string; /** * The main content of the card. */ data?: string; /** * Info about the last text. */ dateDescription?: string; /** * The bottom text of the card. */ date?: string; } const InfoCardWithDate = (props: InfoCardWithDateProps) => { const { title, data, dateDescription, date } = props; const classes = createClasses(); return ( {title} {data} {dateDescription} {date} ); }; InfoCardWithDate.defaultProps = { title: '-', data: '-', dateDescription: '-', date: '-' }; const m = memo(InfoCardWithDate); export { m as InfoCardWithDate };