# post-carousel/4.0.7/src/blocks/thumbnail-slider-two/inspect.js

Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog &amp; News, version 4.0.7. 83 lines.

- Page: https://pluginprobe.com/plugins/post-carousel/4.0.7/code/src/blocks/thumbnail-slider-two/inspect.js
- Raw: https://pluginprobe.com/plugins/post-carousel/4.0.7/raw/src/blocks/thumbnail-slider-two/inspect.js
- Modified: 2026-04-24T11:48:54+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/post-carousel/4.0.7/code/src/blocks/thumbnail-slider-two/inspect.js#L10-L20`.

```javascript
import { __ } from "@wordpress/i18n";
import { PanelBody } from "@wordpress/components";
import { TabControls } from "../../components";
import { usePanelBodyContext } from "../../context";
import { ThumbnailProgressBarTab, ThumbnailSliderTwoGeneralTab, ThumbnailTwoSliderTab } from "./generalTab";
import SharedInspectors from "../shared/inspectors";

const Inspect = ({ attributes, setAttributes, isSelected }) => {
	const { openPanel, togglePanelBody } = usePanelBodyContext();
	const {
		thumbnailSliderTwoLayout,
		// thumbnailTwoNavArrow,
		carouselNavArrow,
	} = attributes;

	return (
		<>
			<PanelBody
				title={__("Thumbnails Slider", "post-carousel")}
				opened={openPanel === "general"}
				onToggle={() => togglePanelBody("general")}
				initialOpen={true}
			>
				{"general" === openPanel && (
					<TabControls
						attributes={attributes}
						setAttributes={setAttributes}
						GeneralTab={ThumbnailSliderTwoGeneralTab}
						SliderTab={ThumbnailTwoSliderTab}
					/>
				)}
			</PanelBody>
			{"thumbnail-slider-two-layout-two" === thumbnailSliderTwoLayout && (
				<PanelBody
					title={__("Thumbnails Progress Bar", "post-carousel")}
					opened={openPanel === "progressBar"}
					onToggle={() => togglePanelBody("progressBar")}
				>
					{"progressBar" === openPanel && (
						<ThumbnailProgressBarTab attributes={attributes} setAttributes={setAttributes} />
					)}
				</PanelBody>
			)}
			{/* { carouselNavArrow && (
				<PanelBody
					title={ __( 'Navigation Arrow', 'post-carousel' ) }
					opened={ openPanel === 'navigation' }
					onToggle={ () => togglePanelBody( 'navigation' ) }
				>
					{ openPanel === 'navigation' && (
						<TabControls
							attributes={ attributes }
							setAttributes={ setAttributes }
							GeneralTab={ CarouselNavArrowGeneralTab }
							StyleTab={ CarouselNavArrowStyleTab }
						/>
					) }
				</PanelBody>
			) } */}
			{/* <PanelBody
				title={ __( 'General', 'post-carousel' ) }
				opened={ openPanel === 'general' }
				onToggle={ () => togglePanelBody( 'general' ) }
			>
				{ openPanel === 'general' && (
					<ThumbnailTwoGeneralTab
						attributes={ attributes }
						setAttributes={ setAttributes }
					/>
				) }
			</PanelBody> */}
			<SharedInspectors
				attributes={attributes}
				setAttributes={setAttributes}
				togglePanelBody={togglePanelBody}
				openedAccordion={openPanel}
			/>
		</>
	);
};

export default Inspect;

```
