UNPKG

@wordpress/editor

Version:
20 lines (19 loc) 609 B
// 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