text: import React from 'react';
  import PropTypes from 'prop-types';
  import classnames from 'classnames';
  import modifiers from '../../../modifiers';
  
  const PanelHeader = ({
    className,
    renderAs,
    ...allProps
  }) => {
    const Element = renderAs;
    const props = modifiers.clean(allProps);
    return (
      <Element
        {...props}
        className={classnames('panel-heading', modifiers.classnames(allProps), className)}
      />
    );
  };
  
  PanelHeader.propTypes = {
    ...modifiers.propTypes,
    className: PropTypes.string,
    renderAs: PropTypes.oneOfType([
      PropTypes.string,
      PropTypes.func,
    ]),
  };
  
  PanelHeader.defaultProps = {
    ...modifiers.defaultProps,
    className: '',
    renderAs: 'div',
  };
  
  export default PanelHeader;
  