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

import CloseBtn from './CloseBtn';

const JoyrideTooltipContainer = ({
  continuous,
  backProps,
  closeProps,
  primaryProps,
  skipProps,
  index,
  isLastStep,
  setTooltipRef,
  size,
  step,
}) => {
  const { content, hideBackButton, locale, showProgress, showSkipButton, title, styles } = step;
  const { back, close, last, next, skip } = locale;
  const output = {
    primary: close,
  };

  if (continuous) {
    if (isLastStep) {
      output.primary = last;
    }
    else {
      output.primary = next;
    }

    if (showProgress) {
      output.primary += ` (${index + 1}/${size})`;
    }<commit_msg>Fix string concatenation for showProgress<commit_after>import React from 'react';
import PropTypes from 'prop-types';

import CloseBtn from './CloseBtn';

const JoyrideTooltipContainer = ({
  continuous,
  backProps,
  closeProps,
  primaryProps,
  skipProps,
  index,
  isLastStep,
  setTooltipRef,
  size,
  step,
}) => {
  const { content, hideBackButton, locale, showProgress, showSkipButton, title, styles } = step;
  const { back, close, last, next, skip } = locale;
  const output = {
    primary: close,
  };

  if (continuous) {
    output.primary = isLastStep ? last : next;

    if (showProgress) {
      output.primary = <span>{output.primary} ({index + 1}/{size})</span>;
    }
{'fraction_non_alphanumeric': 0.13005780346820808, 'fraction_numerical': 0.001445086705202312, 'mean_word_length': 3.382911392405063, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '6066514', 'n_tokens_mistral': 447, 'n_tokens_neox': 442, 'n_words': 118}