import { Box, useTheme } from "@mui/material";
import Chip from "../../../components/Chip/Chip";
import { formatNumber } from "../../../helpers";
import { DecimalBigNumber } from "../../../helpers/DecimalBigNumber";
const BondDiscount = ({ discount, textOnly }) => {
const theme = useTheme();
const discountString = `${formatNumber(Number(discount.mul(new DecimalBigNumber("100").toString())), 2)}%`;
return textOnly ? (
{discountString}
) : (
);
};
export default BondDiscount;