import { jsxs as _jsxs } from "react/jsx-runtime";
const Price = (props) => {
    const { hideCurrency = false, amount, currency } = props;
    const totalAmount = parseFloat(amount).toFixed(2);
    return (_jsxs("span", { children: [totalAmount.split('.')[0], ",", totalAmount.split('.')[1], !hideCurrency && currency] }));
};
export default Price;
//# sourceMappingURL=Price.js.map