import { aM as m, aK as l, aJ as a } from "./index-THhC4TET.js";
import { A as f } from "./AppCard-1cD7do0L.js";
import { u } from "./useIsAppEnabled-I_8ayZmb.js";
import A from "./EventTypeAppSettingsInterface-W_7y-O19.js";
const S = function({ app: t, eventType: e }) {
  var s;
  const { getAppData: o, setAppData: i, disabled: n } = m(), { enabled: p, updateEnabled: r } = u(t), { t: c } = l();
  return /* @__PURE__ */ a.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__ */ a.jsx(
        A,
        {
          eventType: e,
          slug: t.slug,
          disabled: n,
          getAppData: o,
          setAppData: i
        }
      )
    }
  );
};
export {
  S as default
};
