"use client";

import dynamic from "next/dynamic";
import type { ComponentProps } from "react";
import type PropertyMap from "./PropertyMap";

const PropertyMapDynamic = dynamic(() => import("./PropertyMap"), {
  ssr: false,
  loading: () => (
    <div className="w-full h-full min-h-[320px] bg-gray-100 animate-pulse rounded-lg" />
  ),
});

export default function PropertyMapWrapper(
  props: ComponentProps<typeof PropertyMap>
) {
  return <PropertyMapDynamic {...props} />;
}
