lbry-desktop/ui/component/yrblWalletEmpty/view.jsx

57 lines
1.8 KiB
React
Raw Normal View History

// @flow
import type { Node } from 'react';
import * as ICONS from 'constants/icons';
import * as PAGES from 'constants/pages';
import React from 'react';
import Button from 'component/button';
import Yrbl from 'component/yrbl';
2020-09-02 22:08:37 +02:00
import I18nMessage from 'component/i18nMessage';
import LbcSymbol from 'component/common/lbc-symbol';
type Props = {
includeWalletLink: boolean,
type?: string,
actions?: Node,
};
export default function YrblWalletEmpty(props: Props) {
2021-03-10 07:06:59 +01:00
const { includeWalletLink = false, type = 'sad' } = props;
return (
<div className="main--empty">
<Yrbl
type={type}
title={__('Your wallet is empty')}
subtitle={
<div>
<p>
2020-09-02 22:08:37 +02:00
<I18nMessage tokens={{ lbc: <LbcSymbol /> }}>
You need %lbc% to create a channel and upload content.
</I18nMessage>
</p>
2020-09-02 22:08:37 +02:00
<p>
<I18nMessage tokens={{ lbc: <LbcSymbol /> }}>
2020-09-04 19:14:48 +02:00
Never fear though, there are tons of ways to earn %lbc%. You can earn or purchase %lbc%, or you can have
2020-09-02 22:08:37 +02:00
your friends send you some.
</I18nMessage>
</p>
</div>
}
actions={
<div className="section__actions">
<Button button="primary" icon={ICONS.REWARDS} label={__('Earn Rewards')} navigate={`/$/${PAGES.REWARDS}`} />
<Button button="secondary" icon={ICONS.BUY} label={'Buy/Swap Credits'} navigate={`/$/${PAGES.BUY}`} />
2020-09-02 22:08:37 +02:00
{includeWalletLink && (
<Button
2020-09-02 22:08:37 +02:00
icon={ICONS.RECEIVE}
button="secondary"
label={__('Your Address')}
2021-03-10 07:06:59 +01:00
navigate={`/$/${PAGES.RECEIVE}`}
/>
2020-09-02 22:08:37 +02:00
)}
</div>
}
/>
</div>
);
}