import React from 'react';
import PropTypes from 'prop-types';
import './Card.css';
const Card = props => (
{props.title &&
{props.title}
{props.subtitle &&
}
{props.refresh &&
{props.refresh}
}
}
{props.children}
);
Card.propTypes = {
id: PropTypes.string,
title: PropTypes.string,
subtitle: PropTypes.string,
bodyType: PropTypes.string,
type: PropTypes.string,
refresh: PropTypes.node,
children: PropTypes.node.isRequired,
};
export default Card;