import { jsx as i } from "react/jsx-runtime";
import { J as m, y as f } from "./index-_1f6rhg6.js";
import { A as l } from "./AppCard-vvom7JzI.js";
import { u } from "./useIsAppEnabled-EWMW2qIQ.js";
import A from "./EventTypeAppSettingsInterface-7r6Eayog.js";
const w = function({ app: t, eventType: e }) {
  var o;
  const { getAppData: s, setAppData: a, disabled: p } = m(), { enabled: n, updateEnabled: r } = u(t), { t: c } = f();
  return /* @__PURE__ */ i(
    l,
    {
      app: t,
      description: c("confirmation_page_gif"),
      switchOnClick: (d) => {
        r(d);
      },
      switchChecked: n,
      teamId: ((o = e.team) == null ? void 0 : o.id) || void 0,
      children: /* @__PURE__ */ i(
        A,
        {
          eventType: e,
          slug: t.slug,
          disabled: p,
          getAppData: s,
          setAppData: a
        }
      )
    }
  );
};
export {
  w as default
};
