import clsx from "clsx" import { formatAmountWithSymbol } from "../../../../utils/prices" export const DisplayTotal = ({ totalAmount, totalTitle, currency, variant = "regular", subtitle = "", totalColor = "text-grey-90", }) => (
{totalTitle}
{subtitle && (
{subtitle}
)}
) export const DisplayTotalAmount = ({ totalColor = "text-grey-90", variant = "regular", totalAmount, currency, }) => (
{formatAmountWithSymbol({ amount: totalAmount, currency, })}
{variant === "regular" && (
{currency.toUpperCase()}
)}
)