import { jsx as s } from "react/jsx-runtime";
import { z as d, W as i } from "./index-MLgFWWYi.js";
import { A as m } from "./AppCard-Zx_xfVt_.js";
import { u } from "./useIsAppEnabled-GIoK8AkC.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
};
