import { v as d, q as e } from "./index-jYYVpIDL.js";
import { A as c } from "./AppCard-pSUVQRE0.js";
import { u as m } from "./useIsAppEnabled-Tvqt7uu5.js";
import u from "./EventTypeAppSettingsInterface-aygrS7XF.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
};
