UNPKG

@wordpress/block-library

Version:
21 lines (20 loc) • 618 B
import { __ } from "@wordpress/i18n"; import { category } from "@wordpress/icons"; // packages/block-library/src/categories/variations.js const variations = [{ name: "terms", title: __("Terms List"), icon: category, attributes: { taxonomy: "post_tag" }, isActive: (blockAttributes) => blockAttributes.taxonomy !== "category" }, { name: "categories", title: __("Categories List"), description: __("Display a list of all categories."), icon: category, attributes: { taxonomy: "category" }, isActive: ["taxonomy"], isDefault: true }]; export { variations as default }; //# sourceMappingURL=variations.mjs.map