import { aM as d, aJ as a } from "./index-THhC4TET.js";
import { A as c } from "./AppCard-1cD7do0L.js";
import { u as m } from "./useIsAppEnabled-I_8ayZmb.js";
import u from "./EventTypeAppSettingsInterface-ORy-4gd1.js";
const C = function({ app: t, eventType: e }) {
  var s;
  const { getAppData: p, setAppData: n, disabled: r } = d(), { enabled: i, updateEnabled: o } = m(t);
  return /* @__PURE__ */ a.jsx(
    c,
    {
      hideSettingsIcon: !0,
      app: t,
      switchOnClick: o,
      switchChecked: i,
      teamId: ((s = e.team) == null ? void 0 : s.id) || void 0,
      children: /* @__PURE__ */ a.jsx(
        u,
        {
          eventType: e,
          slug: t.slug,
          disabled: r,
          getAppData: p,
          setAppData: n
        }
      )
    }
  );
};
export {
  C as default
};
