import { jsx as i } from "react/jsx-runtime";
import { t as m, q as f } from "./index-ZQlxzdt5.js";
import { A as l } from "./AppCard-cTGNOAHy.js";
import { u } from "./useIsAppEnabled-V8Jl9FX-.js";
import A from "./EventTypeAppSettingsInterface-uJw6TEuG.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
};
