@wordpress/block-library
Version:
Block library for the WordPress editor.
26 lines (24 loc) • 727 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.QueryPaginationLabelControl = QueryPaginationLabelControl;
var _i18n = require("@wordpress/i18n");
var _components = require("@wordpress/components");
var _jsxRuntime = require("react/jsx-runtime");
/**
* WordPress dependencies
*/
function QueryPaginationLabelControl({
value,
onChange
}) {
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.ToggleControl, {
__nextHasNoMarginBottom: true,
label: (0, _i18n.__)('Show label text'),
help: (0, _i18n.__)('Make label text visible, e.g. "Next Page".'),
onChange: onChange,
checked: value === true
});
}
//# sourceMappingURL=query-pagination-label-control.js.map
;