import { Card, CardHeader, CardContent, Typography } from '@mui/material'; import React, { ReactEventHandler } from 'react'; type ContentCardProps = { title?: React.ReactNode; subtitle?: string; Icon?: React.ReactNode; Action?: React.ReactNode; errorMsg?: string; onClick?: ReactEventHandler; }; export const ContentCard: React.FC = ({ title, Icon, Action, subtitle, errorMsg, children, onClick, }) => ( {title && ( )} {children && {children}} {errorMsg && ( {errorMsg} )} ); ContentCard.defaultProps = { title: undefined, subtitle: undefined, Icon: null, Action: null, errorMsg: undefined, onClick: () => null, };