import { jsx as a } from "react/jsx-runtime";
import { G as d } from "./index-MLgFWWYi.js";
import { A as m } from "./AppCard-Zx_xfVt_.js";
import { u as c } from "./useIsAppEnabled-GIoK8AkC.js";
import u from "./EventTypeAppSettingsInterface-N3GZOEOV.js";
const E = function({ app: t, eventType: e }) {
  var p;
  const { getAppData: r, setAppData: s, disabled: n } = d(), { enabled: o, updateEnabled: i } = c(t);
  return /* @__PURE__ */ a(
    m,
    {
      hideSettingsIcon: !0,
      app: t,
      switchOnClick: i,
      switchChecked: o,
      teamId: ((p = e.team) == null ? void 0 : p.id) || void 0,
      children: /* @__PURE__ */ a(
        u,
        {
          eventType: e,
          slug: t.slug,
          disabled: n,
          getAppData: r,
          setAppData: s
        }
      )
    }
  );
};
export {
  E as default
};
