@wordpress/block-library
Version:
Block library for the WordPress editor.
29 lines (28 loc) • 1.08 kB
JavaScript
;
Object.defineProperties(exports, {
__esModule: { value: true },
[Symbol.toStringTag]: { value: "Module" }
});
let _wordpress_i18n = require("@wordpress/i18n");
let _wordpress_icons = require("@wordpress/icons");
// packages/block-library/src/post-time-to-read/variations.js
const variations = [{
name: "time-to-read",
title: (0, _wordpress_i18n.__)("Time to Read"),
description: (0, _wordpress_i18n.__)("Show minutes required to finish reading the post."),
attributes: { displayMode: "time" },
scope: ["inserter", "transform"],
isActive: (blockAttributes) => blockAttributes?.displayMode === "time",
icon: _wordpress_icons.time,
isDefault: true
}, {
name: "word-count",
title: (0, _wordpress_i18n.__)("Word Count"),
description: (0, _wordpress_i18n.__)("Show the number of words in the post."),
attributes: { displayMode: "words" },
scope: ["inserter", "transform"],
isActive: (blockAttributes) => blockAttributes?.displayMode === "words",
icon: _wordpress_icons.wordCount
}];
exports.default = variations;
//# sourceMappingURL=variations.cjs.map