UNPKG

@wordpress/block-library

Version:
18 lines (17 loc) • 654 B
"use strict"; Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } }); let _wordpress_components = require("@wordpress/components"); let react_jsx_runtime = require("react/jsx-runtime"); // packages/block-library/src/terms-query/edit/inspector-controls/empty-terms-control.jsx function EmptyTermsControl({ value, onChange, ...props }) { return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_wordpress_components.ToggleControl, { checked: !value, onChange: (showEmpty) => onChange(!showEmpty), ...props }); } exports.default = EmptyTermsControl; //# sourceMappingURL=empty-terms-control.cjs.map