import { jsxs, jsx } from "react/jsx-runtime";
import { useNavigate, Link, Outlet } from "@tanstack/react-router";
import { s as supabase } from "./client-P40JY-SL.js";
import "@supabase/supabase-js";
function AdminShell() {
  const navigate = useNavigate();
  async function signOut() {
    await supabase.auth.signOut();
    navigate({
      to: "/auth",
      replace: true
    });
  }
  return /* @__PURE__ */ jsxs("div", { className: "min-h-screen bg-ivory", children: [
    /* @__PURE__ */ jsx("header", { className: "border-b border-navy/10 bg-white", children: /* @__PURE__ */ jsxs("div", { className: "mx-auto flex max-w-7xl items-center justify-between px-6 py-4", children: [
      /* @__PURE__ */ jsx(Link, { to: "/admin", className: "font-display text-xl font-extrabold uppercase tracking-tighter", children: "Bridgefield · Admin" }),
      /* @__PURE__ */ jsxs("nav", { className: "flex items-center gap-6 text-[11px] font-medium uppercase tracking-widest", children: [
        /* @__PURE__ */ jsx(Link, { to: "/admin", activeOptions: {
          exact: true
        }, activeProps: {
          className: "text-gold"
        }, children: "Dashboard" }),
        /* @__PURE__ */ jsx(Link, { to: "/admin/projects", activeProps: {
          className: "text-gold"
        }, children: "Projects" }),
        /* @__PURE__ */ jsx(Link, { to: "/admin/blogs", activeProps: {
          className: "text-gold"
        }, children: "Blogs" }),
        /* @__PURE__ */ jsx(Link, { to: "/admin/leads", activeProps: {
          className: "text-gold"
        }, children: "Leads" }),
        /* @__PURE__ */ jsx("button", { onClick: signOut, className: "text-navy/60 hover:text-navy", children: "Sign out" })
      ] })
    ] }) }),
    /* @__PURE__ */ jsx("main", { className: "mx-auto max-w-7xl px-6 py-10", children: /* @__PURE__ */ jsx(Outlet, {}) })
  ] });
}
export {
  AdminShell as component
};
