<commit_before>
import React, {
  PropTypes,
} from 'react';

import classNames from 'classnames';

const ViewHeaderNav = props => {
  const links = props.links.map((link, index) => (
    React.createElement(props.linkType, Object.assign({}, link, {
      className: classNames('viewHeaderNav__link', link.className),
      key: index,
    }))
  ));

  return (
    <nav className="viewHeaderNav">
      {links}
    </nav>
  );
};

ViewHeaderNav.propTypes = {
  linkType: PropTypes.oneOfType([
    PropTypes.string,
    PropTypes.func,
  ]).isRequired,
  links: PropTypes.arrayOf(PropTypes.object).isRequired,
};

export default ViewHeaderNav;<commit_msg>[SDX-899] Visualize AQ Layer in Exchange Settings - exporting ACTIVE_LINK_CLASS_NAME through the component<commit_after>
import React, {
  PropTypes,
} from 'react';

import classNames from 'classnames';

const ViewHeaderNav = props => {
  const links = props.links.map((link, index) => (
    React.createElement(props.linkType, Object.assign({}, link, {
      className: classNames('viewHeaderNav__link', link.className),
      key: index,
    }))
  ));

  return (
    <nav className="viewHeaderNav">
      {links}
    </nav>
  );
};

ViewHeaderNav.propTypes = {
  linkType: PropTypes.oneOfType([
    PropTypes.string,
    PropTypes.func,
  ]).isRequired,
  links: PropTypes.arrayOf(PropTypes.object).isRequired,
};

ViewHeaderNav.ACTIVE_LINK_CLASS_NAME = 'is-view-header-nav-link-selected';

export default ViewHeaderNav;
{'fraction_non_alphanumeric': 0.13657876943881, 'fraction_numerical': 0.002028397565922921, 'mean_word_length': 4.016949152542373, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '516463', 'n_tokens_mistral': 470, 'n_tokens_neox': 472, 'n_words': 94}