8889841cassets/js/blocks/collection-filters/inner-blocks/price-filter/components/price-slider.tsx000064400000002472150447536630046614 0ustar00home/clixcotz/gj.clix.co.tz/wp-content/plugins/woocommerce/packages/woocommerce-blocks/** * Internal dependencies */ import { EditProps } from '../types'; import { getFormattedPrice } from '../utils'; /** * We pass the whole props from Edit component to so we're * reusing the EditProps type here. */ export const PriceSlider = ( { attributes, context }: EditProps ) => { const { showInputFields } = attributes; const { minPrice, maxPrice, formattedMinPrice, formattedMaxPrice } = getFormattedPrice( context.collectionData ); const onChange = () => null; const priceMin = showInputFields ? ( ) : ( { formattedMinPrice } ); const priceMax = showInputFields ? ( ) : ( { formattedMaxPrice } ); return ( <>
{ priceMin } { priceMax }
); };