UNPKG

@wordpress/components

Version:
30 lines (29 loc) 714 B
import { buildTermsTree } from "./terms"; import TreeSelect from "../tree-select"; import { jsx as _jsx } from "react/jsx-runtime"; function AuthorSelect({ __next40pxDefaultSize, label, noOptionLabel, authorList, selectedAuthorId, onChange: onChangeProp }) { if (!authorList) { return null; } const termsTree = buildTermsTree(authorList); return /* @__PURE__ */ _jsx(TreeSelect, { label, noOptionLabel, onChange: onChangeProp, tree: termsTree, selectedId: selectedAuthorId !== void 0 ? String(selectedAuthorId) : void 0, __nextHasNoMarginBottom: true, __next40pxDefaultSize }); } export { AuthorSelect as default }; //# sourceMappingURL=author-select.js.map