File "frontend.js"
Full Path: /home/vantageo/public_html/cache/cache/cache/cache/.wp-cli/wp-content/plugins/woocommerce/packages/woocommerce-blocks/assets/js/blocks/active-filters/frontend.js
File size: 535 bytes
MIME-type: text/x-java
Charset: utf-8
/**
* 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,
} );