import { jsx as s } from "react/jsx-runtime";
import { s as f, q as l } from "./index-T-3isYi5.js";
import { A as u } from "./AppCard-JgJMoBtw.js";
import { u as A } from "./useIsAppEnabled-SudDKIHz.js";
import h from "./EventTypeAppSettingsInterface-ZN3kLKGG.js";
const v = function({
  app: t,
  eventType: e,
  onAppInstallSuccess: i
}) {
  var o;
  const { getAppData: a, setAppData: p, disabled: n } = f(), { enabled: r, updateEnabled: c } = A(t), { t: d } = l();
  return /* @__PURE__ */ s(
    u,
    {
      onAppInstallSuccess: i,
      app: t,
      description: d("confirmation_page_gif"),
      switchOnClick: (m) => {
        c(m);
      },
      switchChecked: r,
      teamId: ((o = e.team) == null ? void 0 : o.id) || void 0,
      children: /* @__PURE__ */ s(
        h,
        {
          eventType: e,
          slug: t.slug,
          disabled: n,
          getAppData: a,
          setAppData: p
        }
      )
    }
  );
};
export {
  v as default
};
