// @flow import * as ICONS from 'constants/icons'; import * as MODALS from 'constants/modal_types'; import * as PAGES from 'constants/pages'; import React from 'react'; import CreditAmount from 'component/common/credit-amount'; import Button from 'component/button'; import HelpLink from 'component/common/help-link'; import Card from 'component/common/card'; import Icon from 'component/common/icon'; import LbcSymbol from 'component/common/lbc-symbol'; import I18nMessage from 'component/i18nMessage'; import { formatNumberWithCommas } from 'util/number'; type Props = { totalTippedAmount: number, accountDetails: any, }; const WalletBalance = (props: Props) => { const { accountDetails, totalTippedAmount, } = props; const [detailsExpanded, setDetailsExpanded] = React.useState(false); console.log('total tipped amount') console.log(totalTippedAmount) // console.log('account details'); // console.log(accountDetails); return ( <>{1 == 1 && {totalTippedAmount} USD} subtitle={ The total amount you have tipped to different creators } actions={ <>

${accountDetails && accountDetails.total_tipped / 100 } Received Total

${accountDetails && accountDetails.total_paid_out/100 } Withdrawn

{/* view more section */} {detailsExpanded && (
{__('...earned from others')} ({__('Unlock to spend')})
{Boolean(1) && (
{__('...on initial publishes')} ({__('Delete or edit past content to spend')})
{__('...supporting content')} ({__('Delete supports to spend')})
)}
} />} ); }; export default WalletBalance;