import { aN as d, aK as e } from "./index-GTnBs7av.js";
import { A as c } from "./AppCard-Q28K7Yaw.js";
import { u as m } from "./useIsAppEnabled-7UywjsU4.js";
import u from "./EventTypeAppSettingsInterface-1H_bNxPU.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
};
