woocommerce/plugins/woocommerce-blocks/assets/js/base/context/product-layout-context.js

14 lines
341 B
JavaScript

/**
* External dependencies
*/
import { createContext, useContext } from '@wordpress/element';
const ProductLayoutContext = createContext( {
layoutStyleClassPrefix: '',
} );
export const useProductLayoutContext = () => {
useContext( ProductLayoutContext );
};
export const ProductLayoutContextProvider = ProductLayoutContext.Provider;