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