import { jsx as i } from "react/jsx-runtime";
import { G as m, y as f } from "./index-MLgFWWYi.js";
import { A as l } from "./AppCard-Zx_xfVt_.js";
import { u } from "./useIsAppEnabled-GIoK8AkC.js";
import A from "./EventTypeAppSettingsInterface-WxLx9nXX.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
};
