import { useCallback, useState } from 'react' import { percentFormat } from '../utils/index' import useSrmAccount from '../hooks/useSrmAccount' import useMangoStore from '../stores/useMangoStore' import Button from './Button' import DepositSrmModal from './DepositSrmModal' import WithdrawSrmModal from './WithdrawSrmModal' const FeeDiscountsTable = () => { const [showDeposit, setShowDeposit] = useState(false) const [showWithdraw, setShowWithdraw] = useState(false) const { totalSrm, rates } = useSrmAccount() const connected = useMangoStore((s) => s.wallet.connected) const contributedSrm = useMangoStore((s) => s.wallet.contributedSrm) const handleCloseDeposit = useCallback(() => { setShowDeposit(false) }, []) const handleCloseWithdraw = useCallback(() => { setShowWithdraw(false) }, []) return (