import { CurrencyDollarIcon } from '@heroicons/react/outline' import { Contract } from 'common/contract' import { Tooltip } from 'web/components/tooltip' import { formatMoney } from 'common/util/format' import { COMMENT_BOUNTY_AMOUNT } from 'common/economy' export function BountiedContractBadge() { return ( Bounty ) } export function BountiedContractSmallBadge(props: { contract: Contract showAmount?: boolean }) { const { contract, showAmount } = props const { openCommentBounties } = contract if (!openCommentBounties) return
return ( {showAmount && formatMoney(openCommentBounties)} Bounty ) } export const CommentBountiesTooltipText = ( creator: string, openCommentBounties: number ) => `${creator} may award ${formatMoney( COMMENT_BOUNTY_AMOUNT )} for good comments. ${formatMoney( openCommentBounties )} currently available.`