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