/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ import * as React from 'react' import { StyledWrapper, StyledHeader, StyledTitle, StyledBalance, StyledBalanceTokens, StyledBalanceCurrency, StyledBalanceConverted } from './style' import { getLocale } from '../../../../helpers' export interface Props { id?: string balance: string converted?: string onClick: () => void } export default class WalletInfoHeader extends React.PureComponent { render () { const { id, balance, converted, onClick } = this.props return ( {getLocale('yourWallet')} {balance} BAT { converted ? {converted} : null } ) } }