import { ReactElement, useContext, useState } from 'react' import ExpandableList from '../../../components/ExpandableList' import ExpandableListItem from '../../../components/ExpandableListItem' import ExpandableListItemActions from '../../../components/ExpandableListItemActions' import { Loading } from '../../../components/Loading' import TroubleshootConnectionCard from '../../../components/TroubleshootConnectionCard' import StakeModal from '../../../containers/StakeModal' import { CheckState, Context as BeeContext } from '../../../providers/Bee' import { AccountNavigation } from '../AccountNavigation' import { Header } from '../Header' export function AccountStaking(): ReactElement { const [loading, setLoading] = useState(false) const { status, stake, walletBalance } = useContext(BeeContext) if (status.all === CheckState.ERROR) return function onStarted() { setLoading(true) } function onFinished() { setLoading(false) } return ( <>
{loading || !stake ? ( ) : ( {walletBalance?.bzzBalance ? ( ) : null} )}
) }