@wordpress/block-library
Version:
Block library for the WordPress editor.
21 lines (20 loc) • 618 B
JavaScript
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