import { jsx as i } from "react/jsx-runtime";
import { J as m, y as f } from "./index-ykl8OQ78.js";
import { A as l } from "./AppCard-cTyZ7qdO.js";
import { u } from "./useIsAppEnabled-jQTpW-EN.js";
import A from "./EventTypeAppSettingsInterface-2oHFXxC0.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
};
