import { jsx as e } from "react/jsx-runtime";
import { J as d } from "./index-_1f6rhg6.js";
import { A as c } from "./AppCard-vvom7JzI.js";
import { u as m } from "./useIsAppEnabled-EWMW2qIQ.js";
import l from "./EventTypeAppSettingsInterface-WrZ3-X7V.js";
const b = function({ app: t, eventType: p }) {
  const { getAppData: r, setAppData: s, disabled: a } = d(), { enabled: n, updateEnabled: o } = m(t);
  return /* @__PURE__ */ e(
    c,
    {
      app: t,
      switchOnClick: (i) => {
        o(i);
      },
      switchChecked: n,
      children: /* @__PURE__ */ e(
        l,
        {
          slug: t.slug,
          eventType: p,
          disabled: a,
          getAppData: r,
          setAppData: s
        }
      )
    }
  );
};
export {
  b as default
};
