/** * External dependencies */ import { Card as WPCard, CardBody, CardHeader } from '@wordpress/components'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import { Text } from '@woocommerce/experimental'; /** * Internal dependencies */ import './style.scss'; const Card = ( props ) => { const { title, description, children, className } = props; return (
{ title } { description }
{ children }
); }; Card.propTypes = { /** * Card title. */ title: PropTypes.string, /** * Card description. */ description: PropTypes.string, /** * Additional class name to style the component. */ className: PropTypes.string, /** * A renderable component (or string) which will be displayed as the content of this item. Generally a `ToggleControl`. */ children: PropTypes.node, }; export default Card;