lbry-desktop/web/component/nag-no-user.jsx
2021-06-18 10:57:19 -04:00

25 lines
562 B
JavaScript

// @flow
import { SITE_NAME } from 'config';
import React from 'react';
import Nag from 'component/common/nag';
import I18nMessage from 'component/i18nMessage';
export default function NagNoUser() {
return (
<Nag
type="error"
message={
<I18nMessage
tokens={{
SITE_NAME,
}}
>
Could not get a user ID. Account functions will be unavailable. Try again in a bit.
</I18nMessage>
}
actionText={__('Refresh')}
onClick={() => window.location.reload()}
/>
);
}