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