import { useState } from 'react' import clsx from 'clsx' import { buttonClass } from 'web/components/button' import { CPMMContract } from 'common/contract' import { LiquidityModal } from './liquidity-modal' export function AddLiquidityButton(props: { contract: CPMMContract className?: string }) { const { contract, className } = props const [open, setOpen] = useState(false) const disabled = contract.isResolved || (contract.closeTime ?? Infinity) < Date.now() if (disabled) return <> return ( setOpen(true)} target="_blank" >
💧 Add liquidity
) }