@wordpress/block-library
Version:
Block library for the WordPress editor.
13 lines (12 loc) • 638 B
JavaScript
import { useSelect } from "@wordpress/data";
import { store } from "@wordpress/block-editor";
import TermsQueryContent from "./terms-query-content.mjs";
import TermsQueryPlaceholder from "./terms-query-placeholder.mjs";
import { jsx } from "react/jsx-runtime";
// packages/block-library/src/terms-query/edit/index.jsx
const TermsQueryEdit = (props) => {
const Component = useSelect((select) => !!select(store).getBlocks(props.clientId).length, [props.clientId]) ? TermsQueryContent : TermsQueryPlaceholder;
return /* @__PURE__ */ jsx(Component, { ...props });
};
export { TermsQueryEdit as default };
//# sourceMappingURL=index.mjs.map