Przejdź do głównej zawartości

Function: useFormatPriceRange()

useFormatPriceRange(): (minPrice, maxPrice, localeOverride?) => string

Memoised formatPriceRange bound to the active language from <StorefrontProvider>.

Returns​

(minPrice, maxPrice, localeOverride?) => string

Example​

const formatPriceRange = useFormatPriceRange();
return <span>{formatPriceRange(min, max)}</span>;