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: FCWithChildren = ({ title, Icon, Action, subtitle, errorMsg, children, onClick, }) => ( {title && ( )} {children && {children}} {errorMsg && ( {errorMsg} )} )