import { 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, // gridThreeMasonryEnable, } = attributes; const deviceType = breakpoint(); const containerRef = useRef(null); useEffect(() => { toggleEqualHeight(uniqueId, equalHeightEnable); }, [equalHeightEnable, uniqueId, []]); // const HtmlTag = gridThreeMasonryEnable ? Fragment : 'div'; const HtmlTag = "div"; return (