// @onlyOwnGrammar - As this has jsx const ProductPrice = ({inStock, price}) => { const dashCode = 8211 const dash = String.fromCharCode(dashCode) return ( {inStock ? I18n.toCurrency(price) :
{`${dash}`}{I18n.t('spree.out_of_stock')}{`${dash}`}
}
) }