2020-03-17 16:21:26 +01:00
|
|
|
// @flow
|
2020-09-30 16:32:01 +02:00
|
|
|
import { DOMAIN } from 'config';
|
2020-03-17 16:21:26 +01:00
|
|
|
import React from 'react';
|
|
|
|
import Nag from 'component/common/nag';
|
|
|
|
import I18nMessage from 'component/i18nMessage';
|
|
|
|
import Button from 'component/button';
|
|
|
|
|
|
|
|
type Props = {
|
|
|
|
onClose: () => void,
|
|
|
|
};
|
|
|
|
|
|
|
|
export default function NagDegradedPerformance(props: Props) {
|
|
|
|
const { onClose } = props;
|
|
|
|
|
|
|
|
return (
|
|
|
|
<Nag
|
|
|
|
type="error"
|
|
|
|
message={
|
|
|
|
<I18nMessage
|
|
|
|
tokens={{
|
2020-09-30 16:32:01 +02:00
|
|
|
DOMAIN,
|
2022-01-31 17:38:57 +01:00
|
|
|
more_information: (
|
|
|
|
<Button button="link" label={__('more')} href="https://odysee.com/@OdyseeHelp:b?view=about" />
|
|
|
|
),
|
2020-03-17 16:21:26 +01:00
|
|
|
}}
|
|
|
|
>
|
2020-09-30 16:32:01 +02:00
|
|
|
%DOMAIN% performance may be degraded. You can try to use it, or wait 5 minutes and refresh. Please no crush
|
|
|
|
us.
|
2020-03-17 16:21:26 +01:00
|
|
|
</I18nMessage>
|
|
|
|
}
|
|
|
|
actionText={__('Refresh')}
|
|
|
|
onClick={() => window.location.reload()}
|
|
|
|
onClose={onClose}
|
|
|
|
/>
|
|
|
|
);
|
|
|
|
}
|