<commit_before>import * as React from 'react';

interface IViewBarProps
{
  title: string;
};

class ViewBar extends React.Component<IViewBarProps, any>
{
  render()
  {
    return (
      <div className="hard-top hard-top--delta">
        <div className="hard-top__top bg--light-grey">
          <p>{this.props.title}</p>
        </div>
        <div className="hard-top__content">
          {this.props.children}
        </div>
      </div>
    );
  }
};<commit_msg>Add back-link to ViewBar<commit_after>import * as React from 'react';

import { Link } from 'react-router';
import { Icon } from 'View/Ui/Index';

interface IViewBarProps
{
  title: string;

  backLink?: string;
};

class ViewBar extends React.Component<IViewBarProps, any>
{
  render()
  {
    return (
      <div className="hard-top hard-top--delta">
        <div className="hard-top__top bg--light-grey">
          <div className="view-bar">
            {typeof this.props.backLink === 'string'
              ? <Link to={this.props.backLink}
                      className="view-bar__back-link">
                  <Icon icon="angle-left" />
                </Link>
              : undefined}
            <p className="view-bar__title">
              {this.props.title}
            </p>
          </div>
        </div>
        <div className="hard-top__content">
          {this.props.children}
        </div>
      </div>
    );
  }
};
{'fraction_non_alphanumeric': 0.14722617354196302, 'fraction_numerical': 0.0, 'mean_word_length': 1.9558823529411764, 'pattern_counts': {'":': 0, '<': 26, '<?xml version=': 0, '>': 26, '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': '6600657', 'n_tokens_mistral': 438, 'n_tokens_neox': 431, 'n_words': 87}