import { jsx as e } from "react/jsx-runtime";
import { J as d } from "./index-ykl8OQ78.js";
import { A as c } from "./AppCard-cTyZ7qdO.js";
import { u as m } from "./useIsAppEnabled-jQTpW-EN.js";
import l from "./EventTypeAppSettingsInterface-azMpYm3v.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
};
