import { jsxs, jsx } from "react/jsx-runtime";
import { q } from "./router-Dahr8H-r.js";
import { useSuspenseQuery } from "@tanstack/react-query";
import { P as ProjectCard } from "./project-card-CSd7IkOX.js";
import "@tanstack/react-router";
import "react";
import "sonner";
import "lucide-react";
import "./client-P40JY-SL.js";
import "@supabase/supabase-js";
import "./project-images-BkjwhtiA.js";
import "@radix-ui/react-dialog";
import "clsx";
import "tailwind-merge";
import "./lead-form-Bx9NEbTG.js";
import "./server-CWcU6oWp.js";
import "node:async_hooks";
import "h3-v2";
import "@tanstack/router-core";
import "seroval";
import "@tanstack/history";
import "@tanstack/router-core/ssr/client";
import "@tanstack/router-core/ssr/server";
import "@tanstack/react-router/ssr/server";
import "zod";
function ProjectsPage() {
  const {
    data
  } = useSuspenseQuery(q);
  return /* @__PURE__ */ jsxs("section", { className: "mx-auto max-w-7xl px-6 py-16 md:py-24", children: [
    /* @__PURE__ */ jsxs("div", { className: "mb-12", children: [
      /* @__PURE__ */ jsx("span", { className: "eyebrow", children: "Portfolio" }),
      /* @__PURE__ */ jsx("h1", { className: "mt-3 font-display text-4xl font-bold tracking-tight md:text-5xl", children: "Townhouse & Villa Projects in Dubai" }),
      /* @__PURE__ */ jsx("p", { className: "mt-4 max-w-2xl text-sm text-navy/70", children: "Hand-selected communities offering long-term value, flexible payment plans, and strong rental fundamentals." })
    ] }),
    /* @__PURE__ */ jsx("div", { className: "grid gap-8 sm:grid-cols-2 lg:grid-cols-3", children: data.map((p) => /* @__PURE__ */ jsx(ProjectCard, { p }, p.slug)) })
  ] });
}
export {
  ProjectsPage as component
};
