INNER CODE UNIT · JavaScript
printCurrencyAmount
CrystallizeAPI/crystallize-nextjs-boilerplate · src/components/basket/totals/index.js:19
function printCurrencyAmount(value) {
return t('price', { value, currency });
}
const hasDiscount = total?.discount > 0;
const isLoading = status === 'server-basket-is-stale';
return (
<Outer {...props}>
<Rows>
{isLoading && (
<SpinnerWrap>
<Spinner />
</SpinnerWrap>
)}
<Row modifier="total-price">
<span>{t('basket:totalPrice')}:</span>
<RowValue hide={isLoading}>