export interface Props { title?: string, titlePosition?: "center" | "right", condensed?: boolean, className?: string, head?: any, children?: any } const Card = ({ title, titlePosition, condensed, head, children, className }: Props): JSX.Element => (
{ (!!head || !!title) &&
{ !!title &&
{title}
} { head || '' }
}
{children}
); export default Card