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