@wordpress/block-library
Version:
Block library for the WordPress editor.
15 lines (14 loc) • 558 B
JavaScript
import { __ } from "@wordpress/i18n";
import { ToggleControl } from "@wordpress/components";
import { jsx } from "react/jsx-runtime";
// packages/block-library/src/query-pagination/query-pagination-label-control.jsx
function QueryPaginationLabelControl({ value, onChange }) {
return /* @__PURE__ */ jsx(ToggleControl, {
label: __("Show label text"),
help: __("Make label text visible, e.g. \"Next Page\"."),
onChange,
checked: value === true
});
}
export { QueryPaginationLabelControl };
//# sourceMappingURL=query-pagination-label-control.mjs.map