<commit_before>// @flow
import React, { Component } from 'react';
import classnames from 'classnames';
import { observer } from 'mobx-react';
import SVGInline from 'react-svg-inline';
import { defineMessages, intlShape, FormattedHTMLMessage } from 'react-intl';
import styles from './AntivirusRestaurationSlowdownNotification.scss';
import closeCrossWhite from '../../assets/images/close-cross-white.inline.svg';

const messages = defineMessages({
  notification: {
    id: 'wallet.statusMessages.antivirusRestaurationSlowdownNotification',
    defaultMessage: '!!!<strong>Note for users of antivirus software:</strong> Antivirus software may cause slower restoration performance',
    description: 'Warning about antivirus software slowing down restoration process on Windows.'
  },
});

type Props = void;

@observer
export default class AntivirusRestaurationSlowdownNotification extends Component<Props> {

  static contextTypes = {
    intl: intlShape.isRequired,
  };

  render() {
    const notificationClasses = classnames([
      styles.component,
      'AntivirusRestaurationSlowdownNotification',
    ]);

    return (
      <div className={notificationClasses}>
        <div className={styles.text}>
          <FormattedHTMLMessage {...messages.notification} />
        </div>
        <div className={styles.closeButton}>
          <SVGInline className={styles.closeCross} svg={closeCrossWhite} />
        </div>
      </div>
    );
  }
}
<commit_msg>[DDW-370] small fixes<commit_after>// @flow
import React, { Component } from 'react';
import classnames from 'classnames';
import { observer } from 'mobx-react';
import SVGInline from 'react-svg-inline';
import { defineMessages, intlShape, FormattedHTMLMessage } from 'react-intl';
import styles from './AntivirusRestaurationSlowdownNotification.scss';
import closeCrossWhite from '../../assets/images/close-cross-white.inline.svg';

const messages = defineMessages({
  notification: {
    id: 'wallet.statusMessages.antivirusRestaurationSlowdownNotification',
    defaultMessage: '!!!<strong>Note:</strong> Antivirus software, like Windows Defender, can cause slow wallet restoration times.',
    description: 'Warning about antivirus software slowing down restoration process on Windows.'
  },
});

@observer
export default class AntivirusRestaurationSlowdownNotification extends Component<any> {

  static contextTypes = {
    intl: intlShape.isRequired,
  };

  render() {
    const notificationClasses = classnames([
      styles.component,
      'AntivirusRestaurationSlowdownNotification',
    ]);

    return (
      <div className={notificationClasses}>
        <div className={styles.text}>
          <FormattedHTMLMessage {...messages.notification} />
        </div>
        <div className={styles.closeButton}>
          <SVGInline className={styles.closeCross} svg={closeCrossWhite} />
        </div>
      </div>
    );
  }
}

{'fraction_non_alphanumeric': 0.11509303928325293, 'fraction_numerical': 0.0010337698139214334, 'mean_word_length': 4.0486956521739135, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, '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': '6444592', 'n_tokens_mistral': 793, 'n_tokens_neox': 764, 'n_words': 196}