@wordpress/block-library
Version:
Block library for the WordPress editor.
38 lines (36 loc) • 1.48 kB
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.CommentsPaginationArrowControls = CommentsPaginationArrowControls;
var _i18n = require("@wordpress/i18n");
var _components = require("@wordpress/components");
var _jsxRuntime = require("react/jsx-runtime");
/**
* WordPress dependencies
*/
function CommentsPaginationArrowControls({
value,
onChange
}) {
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_components.__experimentalToggleGroupControl, {
__next40pxDefaultSize: true,
__nextHasNoMarginBottom: true,
label: (0, _i18n.__)('Arrow'),
value: value,
onChange: onChange,
help: (0, _i18n.__)('A decorative arrow appended to the next and previous comments link.'),
isBlock: true,
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_components.__experimentalToggleGroupControlOption, {
value: "none",
label: (0, _i18n._x)('None', 'Arrow option for Comments Pagination Next/Previous blocks')
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.__experimentalToggleGroupControlOption, {
value: "arrow",
label: (0, _i18n._x)('Arrow', 'Arrow option for Comments Pagination Next/Previous blocks')
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.__experimentalToggleGroupControlOption, {
value: "chevron",
label: (0, _i18n._x)('Chevron', 'Arrow option for Comments Pagination Next/Previous blocks')
})]
});
}
//# sourceMappingURL=comments-pagination-arrow-controls.js.map
;