import { __ } from "@wordpress/i18n"; import { PanelBody } from "@wordpress/components"; import SharedInspectors from "../shared/inspectors"; import { GridThreeGeneralTab } from "./generalTab"; import { usePanelBodyContext } from "../../context"; const Inspector = ({ attributes, setAttributes, isSelected }) => { // const { togglePanelBody, openedAccordion } = manageOpenAccordion(); const { openPanel, togglePanelBody } = usePanelBodyContext(); return ( <> togglePanelBody("general")} initialOpen={true} > {openPanel === "general" && ( )} ); }; export default Inspector;