"use client";

import { AppSidebar } from "@/components/app-sidebar";
import { SidebarInset, SidebarProvider } from "@/components/ui/sidebar";
import dynamic from "next/dynamic";

export default function Page() {
  const MapWithNoSSR = dynamic(() => import("../../components/map"), {
    ssr: false,
  });
  return (
    <SidebarProvider
      style={
        {
          "--sidebar-width": "350px",
        } as React.CSSProperties
      }
    >
      <AppSidebar />
      <SidebarInset>
        <div id="map" className="w-full h-full border rounded-md m-0 p-0">
          <MapWithNoSSR />
        </div>
      </SidebarInset>
    </SidebarProvider>
  );
}
