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