import React from 'react';
import PropTypes from 'prop-types';
/**
 * Tabheader is used for Large Tabs with subheadings;
 * @param props
 * @returns {XML}
 * @constructor
 */

var TabHeader = function TabHeader(props) {
  var heading = props.heading,
      subHeading = props.subHeading;
  return (//Element type requires by UI-Collab Style
    React.createElement("cui-tab-heading", null, heading, subHeading && React.createElement("div", null, subHeading))
  );
};

TabHeader.propTypes = {
  /** @prop TabHeader text */
  heading: PropTypes.string.isRequired,

  /** @prop Subheader text | '' */
  subHeading: PropTypes.string
};
TabHeader.defaultProps = {
  subHeading: ''
};
TabHeader.displayName = 'TabHeader';
export default TabHeader;