@wordpress/editor
Version:
Enhanced block editor for WordPress posts.
20 lines (19 loc) • 609 B
JavaScript
// packages/editor/src/components/post-template/panel.js
import { usePostTemplatePanelMode } from "./hooks.mjs";
import ClassicThemeControl from "./classic-theme.mjs";
import BlockThemeControl from "./block-theme.mjs";
import { jsx } from "react/jsx-runtime";
function PostTemplatePanel() {
const mode = usePostTemplatePanelMode();
if (mode === "classic") {
return /* @__PURE__ */ jsx(ClassicThemeControl, {});
}
if (mode === "block-theme") {
return /* @__PURE__ */ jsx(BlockThemeControl, {});
}
return null;
}
export {
PostTemplatePanel as default
};
//# sourceMappingURL=panel.mjs.map