import { IoLocationOutline } from "react-icons/io5"; import dynamic from "next/dynamic"; import { t } from "@/utils"; const Map = dynamic(() => import("@/components/Location/Map"), { ssr: false, }); const ProductLocation = ({ productDetails }) => { const handleShowMapClick = () => { const locationQuery = `${ productDetails?.translated_item?.address || productDetails?.address }`; const googleMapsUrl = `https://www.google.com/maps?q=${locationQuery}&ll=${productDetails?.latitude},${productDetails?.longitude}&z=12&t=m`; window.open(googleMapsUrl, "_blank"); }; return (
{t("postedIn")}
{productDetails?.translated_address}