text: import React from 'react';
  import PropTypes from 'prop-types';
  import cn from 'classnames';
  
  const Grid = ({ className, tag, fluid, children, ...restProps }) =>
    React.createElement(tag, {
      className: cn({
        container: !fluid,
        'container-fluid': fluid,
      }, className),
      ...restProps,
    }, children);
  
  Grid.propTypes = {
    className: PropTypes.string,
    tag: PropTypes.string,
    fluid: PropTypes.bool,
    children: PropTypes.node.isRequired,
  };
  
  Grid.defaultProps = {
    className: '',
    tag: 'div',
    fluid: false,
  };
  
  export default Grid;
  