<commit_before>import React from 'react';
import { FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
import {
  Modal,
  ModalFooter,
} from '@folio/stripes/components';

const ErrorModal = (props) => {
  const footer = (
    <ModalFooter
      primaryButton={{
        'label': <FormattedMessage id="ui-users.okay" />,
        'onClick': props.onClose,
      }}
    />
  );

  return (
    <Modal
      size="small"
      footer={footer}
      dismissible
      {...props}
    >
      <p>{props.message}</p>
    </Modal>
  );
};<commit_msg>ErrorModal should not use deprecated props<commit_after>import React from 'react';
import { FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
import {
  Button,
  Modal,
  ModalFooter,
} from '@folio/stripes/components';

const ErrorModal = (props) => {
  const footer = (
    <ModalFooter>
      <Button
        buttonStyle="primary"
        onClick={props.onClose}
      >
        <FormattedMessage id="ui-users.okay" />
      </Button>
    </ModalFooter>
  );

  return (
    <Modal
      size="small"
      footer={footer}
      dismissible
      {...props}
    >
      <p>{props.message}</p>
    </Modal>
  );
};
{'fraction_non_alphanumeric': 0.15008291873963517, 'fraction_numerical': 0.0, 'mean_word_length': 2.508720930232558, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 20, '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': '1200105', 'n_tokens_mistral': 398, 'n_tokens_neox': 390, 'n_words': 81}