All files / lib/FormContent index.js

100% Statements 6/6
100% Branches 0/0
100% Functions 1/1
100% Lines 6/6
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26              89x 6x   6x     89x         89x       89x      
import React from 'react';
import PropTypes from 'prop-types';
 
/**
 * FormContent helps organize the content within a form section and provides a S wrapper;
 **/
 
const FormContent = props => {
  const { children } = props;
 
  return <div className="section__content">{children}</div>;
};
 
FormContent.propTypes = {
  /** @prop Children node to render inside FormContent | null */
  children: PropTypes.node,
};
 
FormContent.deafultProps = {
  children: null,
};
 
FormContent.displayName = 'FormContent';
 
export default FormContent;