MetaPhase-Consulting/State-TalentMAP

View on GitHub
src/Components/Layout/Card/Card.jsx

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import { merge } from 'lodash';
import Base from '../Base';

/* eslint-disable react/prop-types */
const Card = (props) => {
  const options = merge({}, props);
  options.className = `card ${props.className}`.trim();
  return (
    <Base {...options}>
      {props.children}
    </Base>
  );
};
/* eslint-enable react/prop-types */

Card.propTypes = merge({}, Base.propTypes);
Card.defaultProps = merge({}, Base.defaultProps);

export default Card;