Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
optometrists
/
cache
/
cache
/
cache
/
cache
/
cache
/
cache
/
.wp-cli
/
wp-content
/
plugins
/
woocommerce
/
packages
/
woocommerce-blocks
/
assets
/
js
/
blocks
/
active-filters
:
frontend.js
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
/** * External dependencies */ import { withRestApiHydration } from '@woocommerce/block-hocs'; import { renderFrontend } from '@woocommerce/base-utils'; /** * Internal dependencies */ import Block from './block.js'; const getProps = ( el ) => { return { attributes: { displayStyle: el.dataset.displayStyle, heading: el.dataset.heading, headingLevel: el.dataset.headingLevel || 3, }, }; }; renderFrontend( { selector: '.wp-block-woocommerce-active-filters', Block: withRestApiHydration( Block ), getProps, } );