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