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