<commit_before>import React from 'react';
import PropTypes from 'prop-types';

import { react2angular } from 'react2angular';

export function Footer({ clientConfig, currentUser }) {
  const backendVersion = clientConfig.version;
  const frontendVersion = COMMIT;
  const newVersionAvailable = clientConfig.newVersionAvailable && currentUser.isAdmin;
  const separator = ' \u2022 ';

  let newVersionString = '';
  if (newVersionAvailable) {
    newVersionString = (
      <small>
        <a href="https://version.redash.io/">(New Redash version available)</a>
      </small>
    );
  }

  return (
    <div id="footer">
      <a href="https://redash.io">Redash</a> {backendVersion} ({frontendVersion})
      {newVersionString}
      {separator}
      <a href="https://redash.io/help/">Documentation</a>
      {separator}
      <a href="https://github.com/getredash/redash">Contribute</a>
    </div>
  );
}

Footer.propTypes = {<commit_msg>disable lint error due to use of globals<commit_after>import React from 'react';
import PropTypes from 'prop-types';

import { react2angular } from 'react2angular';

export function Footer({ clientConfig, currentUser }) {
  const backendVersion = clientConfig.version;
  /* global COMMIT */
  /* eslint no-undef: "error" */
  const frontendVersion = COMMIT;
  const newVersionAvailable = clientConfig.newVersionAvailable && currentUser.isAdmin;
  const separator = ' \u2022 ';

  let newVersionString = '';
  if (newVersionAvailable) {
    newVersionString = (
      <small>
        <a href="https://version.redash.io/">(New Redash version available)</a>
      </small>
    );
  }

  return (
    <div id="footer">
      <a href="https://redash.io">Redash</a> {backendVersion} ({frontendVersion})
      {newVersionString}
      {separator}
      <a href="https://redash.io/help/">Documentation</a>
      {separator}
      <a href="https://github.com/getredash/redash">Contribute</a>
    </div>
  );
}

Footer.propTypes = {
{'fraction_non_alphanumeric': 0.145769622833843, 'fraction_numerical': 0.0061162079510703364, 'mean_word_length': 3.5022935779816513, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, 'https://': 8, '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': '5772607', 'n_tokens_mistral': 622, 'n_tokens_neox': 605, 'n_words': 128}