2020-09-23 05:35:56 +03:00
|
|
|
import * as React from "react";
|
|
|
|
import * as Constants from "~/common/constants";
|
|
|
|
import * as SVG from "~/common/svg";
|
|
|
|
|
2020-11-04 20:55:48 +03:00
|
|
|
import { css } from "@emotion/core";
|
2020-09-23 05:35:56 +03:00
|
|
|
|
|
|
|
const STYLES_BANNER = css`
|
2020-09-23 14:17:56 +03:00
|
|
|
padding: 12px 24px 12px 12px;
|
|
|
|
font-size: 12px;
|
2020-09-23 05:35:56 +03:00
|
|
|
border-radius: 8px;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: flex-start;
|
2020-09-23 22:46:56 +03:00
|
|
|
background: #ececec;
|
|
|
|
color: ${Constants.system.black};
|
|
|
|
margin-bottom: 48px;
|
2020-09-23 14:17:56 +03:00
|
|
|
margin-top: 4px;
|
|
|
|
display: inline-flex;
|
2020-09-23 05:35:56 +03:00
|
|
|
`;
|
|
|
|
|
|
|
|
export default class TestnetBanner extends React.Component {
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<div css={STYLES_BANNER} style={this.props.style}>
|
2020-11-04 20:55:48 +03:00
|
|
|
<SVG.FilecoinLogo height="24px" style={{ marginRight: 16 }} /> You are on the Filecoin
|
|
|
|
Testnet.{" "}
|
2020-09-23 22:46:56 +03:00
|
|
|
{this.props.balance
|
|
|
|
? `You have ${this.props.balance} to use for
|
|
|
|
testing.`
|
|
|
|
: null}
|
2020-09-23 05:35:56 +03:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|