import { __ } from "@wordpress/i18n"; import { PanelBody } from "@wordpress/components"; import { usePanelBodyContext } from "../../context"; import { TabControls } from "../../components"; import { SmartListsGeneralTab, SmartListsStyleTab, IconImageGeneralTab, IconImageStyleTab, ContentGeneralTab, ContentStyleTab, } from "./generalTab"; import { VisibilityTab, AdvancedTab } from "../shared/advancedTab"; const Inspector = ({ attributes, setAttributes }) => { const { openPanel, togglePanelBody } = usePanelBodyContext(); return ( <> togglePanelBody("general")} initialOpen={true} > {openPanel === "general" && ( )} togglePanelBody("icon-image")} > {openPanel === "icon-image" && ( )} togglePanelBody("content")} > {openPanel === "content" && ( )} togglePanelBody("advance")} > ); }; export default Inspector;