File "example.ts"

Full Path: /home/warrior1/public_html/wp-content-20241001222009/plugins/woocommerce/packages/woocommerce-blocks/assets/js/blocks/featured-items/featured-category/example.ts
File size: 443 bytes
MIME-type: text/x-java
Charset: utf-8

/**
 * External dependencies
 */
import { previewCategories } from '@woocommerce/resource-previews';
import type { Block } from '@wordpress/blocks';

type ExampleBlock = Block[ 'example' ] & {
	attributes: {
		categoryId: 'preview' | number;
		previewCategory: typeof previewCategories[ number ];
	};
};

export const example: ExampleBlock = {
	attributes: {
		categoryId: 'preview',
		previewCategory: previewCategories[ 0 ],
	},
} as const;