import { jsx as s } from "react/jsx-runtime";
import { G as d, W as i } from "./index-_1f6rhg6.js";
import { A as m } from "./AppCard-vvom7JzI.js";
import { u } from "./useIsAppEnabled-EWMW2qIQ.js";
const l = function({ app: t, eventType: e }) {
  var a;
  const p = d.usePathname(), { enabled: n, updateEnabled: r } = u(t);
  return /* @__PURE__ */ s(
    m,
    {
      returnTo: `${i}${p}?tabName=apps`,
      app: t,
      teamId: ((a = e.team) == null ? void 0 : a.id) || void 0,
      switchOnClick: (o) => {
        r(o);
      },
      switchChecked: n,
      hideAppCardOptions: !0
    }
  );
};
export {
  l as default
};
