import { jsx as a } from "react/jsx-runtime";
import { t as m } from "./index-ZQlxzdt5.js";
import { A as c } from "./AppCard-cTGNOAHy.js";
import { u } from "./useIsAppEnabled-V8Jl9FX-.js";
import l from "./EventTypeAppSettingsInterface-wRyNHA8Z.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
};
