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, // gridFiveMasonryEnable, catTabCategoryPosition, } = attributes; const deviceType = breakpoint(); const gridRef = useRef(null); useEffect(() => { toggleEqualHeight(uniqueId, equalHeightEnable); }, [equalHeightEnable, uniqueId, []]); const HtmlTag = "div"; return (