import { __ } from "@wordpress/i18n"; import { PanelBody } from "@wordpress/components"; import { TabControls } from "../../components"; import { PostSliderTwoLayoutTab, PostSliderTwoSliderTab } from "./generalTab"; import SharedInspectors from "../shared/inspectors"; import { usePanelBodyContext } from "../../context"; const Inspector = ({ attributes, setAttributes }) => { // const { togglePanelBody, openedAccordion } = manageOpenAccordion(); const { openPanel, togglePanelBody } = usePanelBodyContext(); const { // postSliderTwoNavArrow, // postSliderTwoPaginationDot } = attributes; return ( <> togglePanelBody("general")} initialOpen={true} > {openPanel === "general" && ( )} {/* { postSliderTwoNavArrow && ( togglePanelBody( 'navigation' ) } > { openPanel === 'navigation' && ( ) } ) } { postSliderTwoPaginationDot && ( togglePanelBody( 'pagination' ) } > { openPanel === 'pagination' && ( ) } ) } */} {/* togglePanelBody( 'general' ) } > { openPanel === 'general' && ( ) } */} ); }; export default Inspector;