import { jsx as r } from "react/jsx-runtime";
import { useState as m } from "react";
import { q as l, d as f } from "./index-C62tPk5p.js";
import { A as u } from "./AppCard-CQEg94Y3.js";
const v = function({ app: p, eventType: i, onAppInstallSuccess: d }) {
  var n;
  const { getAppData: t, setAppData: o } = l(), s = t("trackingId"), [c, a] = m(t("enabled"));
  return /* @__PURE__ */ r(
    u,
    {
      onAppInstallSuccess: d,
      app: p,
      switchOnClick: (e) => {
        a(!!e);
      },
      switchChecked: c,
      teamId: ((n = i.team) == null ? void 0 : n.id) || void 0,
      children: /* @__PURE__ */ r(
        f,
        {
          name: "Tracking ID",
          value: s,
          onChange: (e) => {
            o("trackingId", e.target.value);
          }
        }
      )
    }
  );
};
export {
  v as default
};
