import { aM as d, aJ as e } from "./index-THhC4TET.js";
import { A as c } from "./AppCard-1cD7do0L.js";
import { u as m } from "./useIsAppEnabled-I_8ayZmb.js";
import u from "./EventTypeAppSettingsInterface-Uu_Cuscw.js";
const C = function({ app: t, eventType: p }) {
  const { getAppData: s, setAppData: a, disabled: n } = d(), { enabled: r, updateEnabled: o } = m(t);
  return /* @__PURE__ */ e.jsx(
    c,
    {
      app: t,
      switchOnClick: (i) => {
        o(i);
      },
      switchChecked: r,
      children: /* @__PURE__ */ e.jsx(
        u,
        {
          slug: t.slug,
          eventType: p,
          disabled: n,
          getAppData: s,
          setAppData: a
        }
      )
    }
  );
};
export {
  C as default
};
