import { aZ as d, aW as a } from "./index-6jcTChn4.js";
import { A as c } from "./AppCard-YGWCah1h.js";
import { u as m } from "./useIsAppEnabled-i8k_pVtm.js";
import u from "./EventTypeAppSettingsInterface-6VtWUT3c.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
};
