import { Currency, CurrencyAmount, Fraction, Percent } from 'moonbeamswap' import React from 'react' import { Text } from 'rebass' import { ButtonPrimary } from '../../components/Button' import { RowBetween, RowFixed } from '../../components/Row' import CurrencyLogo from '../../components/CurrencyLogo' import { Field } from '../../state/mint/actions' import { TYPE } from '../../theme' export function ConfirmAddModalBottom({ noLiquidity, price, currencies, parsedAmounts, poolTokenPercentage, onAdd }: { noLiquidity?: boolean price?: Fraction currencies: { [field in Field]?: Currency } parsedAmounts: { [field in Field]?: CurrencyAmount } poolTokenPercentage?: Percent onAdd: () => void }) { return ( <> {currencies[Field.CURRENCY_A]?.symbol} Deposited {parsedAmounts[Field.CURRENCY_A]?.toSignificant(6)} {currencies[Field.CURRENCY_B]?.symbol} Deposited {parsedAmounts[Field.CURRENCY_B]?.toSignificant(6)} Rates {`1 ${currencies[Field.CURRENCY_A]?.symbol} = ${price?.toSignificant(4)} ${ currencies[Field.CURRENCY_B]?.symbol }`} {`1 ${currencies[Field.CURRENCY_B]?.symbol} = ${price?.invert().toSignificant(4)} ${ currencies[Field.CURRENCY_A]?.symbol }`} Share of Pool: {noLiquidity ? '100' : poolTokenPercentage?.toSignificant(4)}% {noLiquidity ? 'Create Pool & Supply' : 'Confirm Supply'} ) }