// @flow import * as ICONS from 'constants/icons'; import React from 'react'; import { Modal } from 'modal/modal'; import I18nMessage from 'component/i18nMessage'; import Button from 'component/button'; import LbcSymbol from 'component/common/lbc-symbol'; import Card from 'component/common/card'; import { WALLET_CONSOLIDATE_UTXOS } from 'component/walletBalance/view'; type Props = { doHideModal: () => void, tipsBalance: number, doTipClaimMass: () => void, massClaimingTips: boolean, utxoCounts: { [string]: number }, }; export default function ModalSupportsLiquidate(props: Props) { const { doHideModal, doTipClaimMass, massClaimingTips, utxoCounts, tipsBalance } = props; const { support: supportCount = 0 } = utxoCounts || {}; React.useEffect(() => { if (!tipsBalance) { doHideModal(); } }, [tipsBalance, doHideModal]); return (

, }} > These %lbc% help your content in search rankings. You can unlock them but that's less fun.

), }} > It's usually only worth unlocking what you intend to use immediately. %learn_more%

} actions={ <>
{supportCount > WALLET_CONSOLIDATE_UTXOS && ( {__('You have a lot of tips. This could take some time.')} )} } />
); }