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