import { __ } from "@wordpress/i18n"; import { Toggle, SPRangeControl, SelectField, Layouts, InputControl } from "../../components"; import { AlignCenter, AlignLeft, AlignRight } from "../../icons/icons"; import { getPaginationBlock } from "../shared/helpFn"; import useLayouts from "../../hooks/useLayouts"; import { openLinksOptions } from "../../controls/constants"; import SPToggleGroupControl from "../../components/toggleGroupControl/toggleGroupControl"; import ProInfo from "../../components/proInfo/proInfo"; export const GridFourGeneralTab = ({ attributes, setAttributes }) => { const { postGridLayout, gridFourColumns, itemsPerPage, gridFourHorizontalGap, gridFourVerticalGap, contentAlignment, // gridFourMasonryEnable, preloaderEnable, blockName, generalLinkOpen, // masonryGap, smallItemHeight, largeItemHeight, postLimit, metaDisplayType, paginationEnable, liveFilterEnable, clientId, } = attributes; const layouts = useLayouts(blockName, postGridLayout); const paginationBlock = getPaginationBlock(clientId); const paginationToggle = (newValue) => { setAttributes({ paginationEnable: !newValue }); if (!newValue && paginationBlock) { const { block, select } = paginationBlock; select(block?.clientId); } }; return ( <> {layouts?.length > 0 && ( )} {/* { gridFourMasonryEnable && ( ) } */} , value: "left" }, { label: , value: "center" }, { label: , value: "right" }, ]} /> {/* */} Unlock exclusive layouts and advanced display controls. Upgrade to Pro! ); };