2020-03-17 16:21:26 +01:00
|
|
|
// @flow
|
|
|
|
import React from 'react';
|
|
|
|
import Nag from 'component/common/nag';
|
|
|
|
import I18nMessage from 'component/i18nMessage';
|
|
|
|
import Button from 'component/button';
|
2020-08-10 22:47:39 +02:00
|
|
|
import { useIsMobile } from 'effects/use-screensize';
|
2020-03-17 16:21:26 +01:00
|
|
|
|
|
|
|
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: (
|
2021-06-13 09:12:28 +02:00
|
|
|
<Button
|
|
|
|
button="link"
|
|
|
|
label={__('more --[value for "more_information"]--')}
|
|
|
|
href="https://lbry.com/faq/privacy-and-data"
|
|
|
|
/>
|
2020-03-17 16:21:26 +01:00
|
|
|
),
|
|
|
|
}}
|
|
|
|
>
|
2020-06-04 19:40:15 +02:00
|
|
|
lbry.tv collects usage information for itself only (%more_information%).
|
2020-03-17 16:21:26 +01:00
|
|
|
</I18nMessage>
|
|
|
|
}
|
|
|
|
actionText={__('OK')}
|
|
|
|
onClick={onClose}
|
|
|
|
/>
|
|
|
|
) : (
|
|
|
|
<Nag
|
|
|
|
message={
|
|
|
|
<I18nMessage
|
|
|
|
tokens={{
|
|
|
|
more_information: (
|
2021-06-13 09:12:28 +02:00
|
|
|
<Button
|
|
|
|
button="link"
|
|
|
|
label={__('more --[value for "more_information"]--')}
|
|
|
|
href="https://lbry.com/faq/privacy-and-data"
|
|
|
|
/>
|
2020-03-17 16:21:26 +01:00
|
|
|
),
|
|
|
|
}}
|
|
|
|
>
|
2020-08-10 22:47:39 +02:00
|
|
|
lbry.tv collects usage information for itself only (%more_information%). Want control over this and more?
|
2020-03-17 16:21:26 +01:00
|
|
|
</I18nMessage>
|
|
|
|
}
|
|
|
|
actionText={__('Get The App')}
|
|
|
|
href="https://lbry.com/get"
|
|
|
|
onClose={onClose}
|
|
|
|
/>
|
|
|
|
)}
|
|
|
|
</React.Fragment>
|
|
|
|
);
|
|
|
|
}
|