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