<commit_before>// @flow
import React from 'react';
import Nag from 'component/common/nag';
import I18nMessage from 'component/i18nMessage';
import Button from 'component/button';
import useIsMobile from 'effects/use-is-mobile';

type Props = {
  onClose: () => void,
};

export default function NagDegradedPerformance(props: Props) {
  const { onClose } = props;
  const isMobile = useIsMobile();

  return (
    <React.Fragment>
      {isMobile ? (
        <Nag
          message={
            <I18nMessage
              tokens={{
                more_information: (
                  <Button button="link" label={__('more')} href="https://lbry.com/faq/privacy-and-data" />
                ),
              }}
            >
              lbry.tv collects usage information for itself and third parties (%more_information%).
            </I18nMessage>
          }
          actionText={__('OK')}
          onClick={onClose}
        />
      ) : (
        <Nag
          message={
            <I18nMessage
              tokens={{<commit_msg>Update message about third party sharing<commit_after>// @flow
import React from 'react';
import Nag from 'component/common/nag';
import I18nMessage from 'component/i18nMessage';
import Button from 'component/button';
import useIsMobile from 'effects/use-is-mobile';

type Props = {
  onClose: () => void,
};

export default function NagDegradedPerformance(props: Props) {
  const { onClose } = props;
  const isMobile = useIsMobile();

  return (
    <React.Fragment>
      {isMobile ? (
        <Nag
          message={
            <I18nMessage
              tokens={{
                more_information: (
                  <Button button="link" label={__('more')} href="https://lbry.com/faq/privacy-and-data" />
                ),
              }}
            >
              lbry.tv collects usage information for itself only (%more_information%).
            </I18nMessage>
          }
          actionText={__('OK')}
          onClick={onClose}
        />
      ) : (
        <Nag
          message={
            <I18nMessage
              tokens={{
{'fraction_non_alphanumeric': 0.12129894937917861, 'fraction_numerical': 0.009551098376313277, 'mean_word_length': 1.8542234332425067, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 15, 'https://': 2, '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': '656299', 'n_tokens_mistral': 608, 'n_tokens_neox': 585, 'n_words': 134}