import { aN as m, aK as s } from "./index-GTnBs7av.js";
import { A as c } from "./AppCard-Q28K7Yaw.js";
import { u } from "./useIsAppEnabled-7UywjsU4.js";
import l from "./EventTypeAppSettingsInterface-g3nU6_Lh.js";
const E = function({ eventType: e, app: t }) {
  var a;
  const { enabled: p, updateEnabled: n } = u(t), { disabled: r, getAppData: o, setAppData: d } = m();
  return /* @__PURE__ */ s.jsx(
    c,
    {
      app: t,
      switchOnClick: (i) => {
        n(i);
      },
      switchChecked: p,
      teamId: ((a = e.team) == null ? void 0 : a.id) || void 0,
      children: /* @__PURE__ */ s.jsx(
        l,
        {
          eventType: e,
          slug: t.slug,
          disabled: r,
          getAppData: o,
          setAppData: d
        }
      )
    }
  );
};
export {
  E as default
};
