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