2020-08-26 19:19:03 +02:00
|
|
|
// @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';
|
2020-08-26 19:19:03 +02:00
|
|
|
|
|
|
|
type Props = {
|
|
|
|
includeWalletLink: boolean,
|
|
|
|
type?: string,
|
|
|
|
actions?: Node,
|
|
|
|
};
|
|
|
|
export default function YrblHelp(props: Props) {
|
2021-03-10 07:06:59 +01:00
|
|
|
const { includeWalletLink = false, type = 'sad' } = props;
|
2020-08-26 19:19:03 +02:00
|
|
|
|
|
|
|
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>
|
2020-08-26 19:19:03 +02:00
|
|
|
</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">
|
2021-12-08 23:48:02 +01:00
|
|
|
<Button button="secondary" icon={ICONS.BUY} label={'Buy Credits'} navigate={`/$/${PAGES.BUY}`} />
|
2020-09-02 22:08:37 +02:00
|
|
|
{includeWalletLink && (
|
2020-08-26 19:19:03 +02:00
|
|
|
<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-08-26 19:19:03 +02:00
|
|
|
/>
|
2020-09-02 22:08:37 +02:00
|
|
|
)}
|
2020-08-26 19:19:03 +02:00
|
|
|
</div>
|
|
|
|
}
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|