import { o as i } from "./rolldown-runtime.js";
import { i as u, t as x } from "./vendor/react.js";
import { t as c } from "./utils.js";
var e = /* @__PURE__ */ i(u(), 1), r = e.createContext(null);
function p() {
  return e.useContext(r);
}
var b = r.Provider, m = e.createContext(0), S = e.createContext({
  visible: !0,
  isMobile: !1
}), f = e.createContext(null);
function A() {
  return e.useContext(f);
}
var C = x();
function v({ className: a, children: l, ...s }) {
  const t = p(), n = t?.connected ?? !1, d = e.useContext(m), o = n && t ? t.getPanelPosition(d) : null;
  return /* @__PURE__ */ (0, C.jsx)("div", {
    "data-slot": "app-shell-content",
    className: c("flex flex-col h-full min-h-0 overflow-clip", "bg-card dark:bg-card-alt", "border border-border", "shadow-sm", !n && "rounded-2xl", n && o === "only" && "rounded-2xl", n && o === "first" && ["rounded-ss-2xl rounded-es-2xl", "rounded-se-none rounded-ee-none"], n && o === "last" && ["rounded-ss-none rounded-es-none", "rounded-se-2xl rounded-ee-2xl"], a),
    ...s,
    children: l
  });
}
v.displayName = "AppShell.Content";
export {
  S as a,
  m as i,
  b as n,
  A as o,
  f as r,
  v as t
};

//# sourceMappingURL=AppShellContent.js.map