"use client"; import { useTranslations } from "next-intl"; import { useEffect } from "react"; const GPRKominfo = () => { const t = useTranslations("Landing"); useEffect(() => { if (typeof window !== "undefined") { const script = document.createElement("script"); script.src = "https://widget.kominfo.go.id/gpr-widget-kominfo.min.js"; script.async = true; document.head.appendChild(script); return () => { document.head.removeChild(script); }; } }, []); // useEffect(() => { // const handleResize = () => { // const bodyElement = document.getElementById("gpr-kominfo-widget-body"); // if (bodyElement) { // bodyElement.style.height = "67vh"; // } // }; // window.addEventListener("resize", handleResize); // handleResize(); // return () => { // window.removeEventListener("resize", handleResize); // }; // }, []); return (