import { jsx as _jsx } from "react/jsx-runtime";
import { NumericFormat } from "react-number-format";
export function FormattedNumber(props) {
    const { value, currency, decimalScale = 2, thousandSeparator = ",", fixedDecimalScale = true, } = props;
    const prefix = currency === "USD" ? "$" : undefined;
    return (_jsx(NumericFormat, { decimalScale: decimalScale, displayType: "text", fixedDecimalScale: fixedDecimalScale, prefix: prefix, thousandSeparator: thousandSeparator, value: value }));
}
//# sourceMappingURL=formatted-number.js.map