text: import React, {Component} from 'react';
  import {connect} from 'react-redux';
  import cx from 'classnames';
  
  import TitleComponent2 from './PageTitleExamples/Variation2'
  
  class PageTitle extends Component {
  
      render() {
          let {
              enablePageTitleIcon,
              enablePageTitleSubheading,
  
              heading,
              icon,
              subheading,
              subheading1,
              subheading2
          } = this.props;
  
          return (
  
              <div className="app-page-title">
                  <div className="page-title-wrapper">
                      <div className="page-title-heading">
                          <div
                              className={cx("page-title-icon", {'d-none': !enablePageTitleIcon})}>
                              <i className={icon}/>
                          </div>
                          <div>
                              {heading}
                              <div
                                  className={cx("page-title-subheading", {'d-none': !enablePageTitleSubheading})}>
                                  {subheading}
                              </div>
                              <div
                                  className={cx("page-title-subheading", {'d-none': !enablePageTitleSubheading})}>
                                  {subheading1}
                              </div>
                              <div
                                  className={cx("page-title-subheading", {'d-none': !enablePageTitleSubheading})}>
                                  {subheading2}
                              </div>
                          </div>
                      </div>
  
                  </div>
              </div>
          );
      }
  }
  
  const mapStateToProps = state => ({
      enablePageTitleIcon: state.ThemeOptions.enablePageTitleIcon,
      enablePageTitleSubheading: state.ThemeOptions.enablePageTitleSubheading,
  });
  
  const mapDispatchToProps = dispatch => ({});
  
  export default connect(mapStateToProps, mapDispatchToProps)(PageTitle);