import { jsx as a } from "react/jsx-runtime";
import { G as m } from "./index-MLgFWWYi.js";
import { A as c } from "./AppCard-Zx_xfVt_.js";
import { u } from "./useIsAppEnabled-GIoK8AkC.js";
import l from "./EventTypeAppSettingsInterface-KY9K2A4a.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
};
