woocommerce/plugins/woocommerce-admin/client/customize-store/assembler-hub/logo-block-context.tsx

22 lines
387 B
TypeScript

/**
* External dependencies
*/
import { createContext } from '@wordpress/element';
export const LogoBlockContext = createContext< {
logoBlock: {
clientId: string | null;
isLoading: boolean;
};
setLogoBlock: ( newBlock: {
clientId: string | null;
isLoading: boolean;
} ) => void;
} >( {
logoBlock: {
clientId: null,
isLoading: false,
},
setLogoBlock: () => {},
} );