import clsx from 'clsx' import { formatMoney, shortFormatNumber } from 'common/util/format' import { Col } from 'web/components/layout/col' import { Tooltip } from '../tooltip' import TipJar from 'web/public/custom-components/tipJar' import { useState } from 'react' import Coin from 'web/public/custom-components/coin' export function TipButton(props: { tipAmount: number totalTipped: number onClick: () => void userTipped: boolean isCompact?: boolean disabled?: boolean }) { const { tipAmount, totalTipped, userTipped, onClick, disabled } = props const tipDisplay = shortFormatNumber(Math.ceil(totalTipped / 10)) const [hover, setHover] = useState(false) return ( ) }