All files / src/components/Card/Content index.jsx

100% Statements 4/4
100% Branches 0/0
100% Functions 1/1
100% Lines 4/4
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23              8x 9x   9x         8x              
import styles from './style.postcss';
 
import React from 'react';
import pure from 'recompose/pure';
import classnames from 'classnames';
import PropTypes from 'prop-types';
 
export const Content = (props) => {
  const className = classnames(props.className, styles.Content,
    { [styles.__bottomless]: props.withoutBottomPadding });
  return <div className={className}>
    {props.children}
  </div>;
};
 
Content.propTypes = {
  className: PropTypes.string,
  withoutBottomPadding: PropTypes.bool,
  children: PropTypes.node,
};
 
export default pure(Content);