UNPKG

@wordpress/block-library

Version:
19 lines (18 loc) 532 B
// packages/block-library/src/terms-query/edit/inspector-controls/empty-terms-control.js import { ToggleControl } from "@wordpress/components"; import { jsx } from "react/jsx-runtime"; function EmptyTermsControl({ value, onChange, ...props }) { return /* @__PURE__ */ jsx( ToggleControl, { __nextHasNoMarginBottom: true, checked: !value, onChange: (showEmpty) => onChange(!showEmpty), ...props } ); } export { EmptyTermsControl as default }; //# sourceMappingURL=empty-terms-control.js.map