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