import { jsx as e } from "react/jsx-runtime";
import { q as c } from "./index-C62tPk5p.js";
import { A as m } from "./AppCard-CQEg94Y3.js";
import { u as l } from "./useIsAppEnabled-DnQeiNdg.js";
import u from "./EventTypeAppSettingsInterface-BaWOePLF.js";
const g = function({
  app: t,
  eventType: p,
  onAppInstallSuccess: r
}) {
  const { getAppData: s, setAppData: a, disabled: n } = c(), { enabled: o, updateEnabled: i } = l(t);
  return /* @__PURE__ */ e(
    m,
    {
      onAppInstallSuccess: r,
      app: t,
      switchOnClick: (d) => {
        i(d);
      },
      switchChecked: o,
      children: /* @__PURE__ */ e(
        u,
        {
          slug: t.slug,
          eventType: p,
          disabled: n,
          getAppData: s,
          setAppData: a
        }
      )
    }
  );
};
export {
  g as default
};
