import { jsx as a } from "react/jsx-runtime";
import { J as d } from "./index-_1f6rhg6.js";
import { A as m } from "./AppCard-vvom7JzI.js";
import { u as c } from "./useIsAppEnabled-EWMW2qIQ.js";
import u from "./EventTypeAppSettingsInterface-2iQLRc2L.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
};
