<commit_before>import React from 'react';

import { useDayPicker } from '../../hooks';

/**
 * Render the Footer component (empty as default).
 */
export function Footer(): JSX.Element {
  const { footer } = useDayPicker();
  return (
    <tfoot>
      <tr>
        <td colSpan={8}>{footer}</td>
      </tr>
    </tfoot>
  );
}<commit_msg>Skip footer if undefined<commit_after>import React from 'react';

import { useDayPicker } from '../../hooks';

/**
 * Render the Footer component (empty as default).
 */
export function Footer(): JSX.Element {
  const { footer } = useDayPicker();
  if (!footer) return <></>;
  return (
    <tfoot>
      <tr>
        <td colSpan={8}>{footer}</td>
      </tr>
    </tfoot>
  );
}
{'fraction_non_alphanumeric': 0.18245125348189414, 'fraction_numerical': 0.002785515320334262, 'mean_word_length': 2.7253886010362693, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '2493751', 'n_tokens_mistral': 237, 'n_tokens_neox': 238, 'n_words': 64}