import React from "react"; import { HStack, VStack, Text, Spinner } from "@chakra-ui/react"; import { roundToDecimals } from "@strata-foundation/react"; import { numberWithCommas } from "../../utils/numberWithCommas"; export const BountyCardContribution = ({ amount, symbol, text = "Contributed", }: { amount: number | undefined; symbol: string | undefined; text?: string; }) => { return ( {typeof amount != "undefined" ? ( numberWithCommas(roundToDecimals(amount, 4)) ) : ( )} {symbol} {text} ); };