import { jsonParse, toggleEqualHeight } from "../shared/helpFn"; import { Fragment, useEffect, useRef } from "@wordpress/element"; import LoopContent from "./loopContent"; import { breakpoint } from "../../controls/controls"; const Render = ({ attributes, posts }) => { const { uniqueId, postGridLayout, equalHeightEnable, catTabCategoryPosition, // gridSixMasonryEnable, } = attributes; const deviceType = breakpoint(); const containerRef = useRef(null); useEffect(() => { toggleEqualHeight(uniqueId, equalHeightEnable); }, [equalHeightEnable, uniqueId, []]); return (