text: import React from 'react';
  import PropTypes from 'prop-types';
  import { css } from '@patternfly/react-styles';
  import styles from '@patternfly/patternfly-next/components/Card/card.css';
  import { componentShape } from '../../internal/componentShape';
  
  const propTypes = {
    /** content rendered inside the Card Body */
    children: PropTypes.any,
    /** additional classes added to the Card Body */
    className: PropTypes.string,
    /** Sets the base component to render. defaults to div */
    component: componentShape
  };
  
  const defaultProps = {
    children: null,
    className: '',
    component: 'div'
  };
  
  const CardBody = ({ children, className, component: Component, ...props }) => (
    <Component className={css(styles.cardBody, className)} {...props}>
      {children}
    </Component>
  );
  
  CardBody.propTypes = propTypes;
  CardBody.defaultProps = defaultProps;
  
  export default CardBody;
  