import { aN as d, aK as a } from "./index-GTnBs7av.js";
import { A as c } from "./AppCard-Q28K7Yaw.js";
import { u as m } from "./useIsAppEnabled-7UywjsU4.js";
import u from "./EventTypeAppSettingsInterface-3H3Q-YVH.js";
const C = function({ app: t, eventType: e }) {
  var s;
  const { getAppData: p, setAppData: n, disabled: r } = d(), { enabled: i, updateEnabled: o } = m(t);
  return /* @__PURE__ */ a.jsx(
    c,
    {
      hideSettingsIcon: !0,
      app: t,
      switchOnClick: o,
      switchChecked: i,
      teamId: ((s = e.team) == null ? void 0 : s.id) || void 0,
      children: /* @__PURE__ */ a.jsx(
        u,
        {
          eventType: e,
          slug: t.slug,
          disabled: r,
          getAppData: p,
          setAppData: n
        }
      )
    }
  );
};
export {
  C as default
};
