import { aL as o, aJ as d, aO as i } from "./index-THhC4TET.js";
import { A as m } from "./AppCard-1cD7do0L.js";
import { u } from "./useIsAppEnabled-I_8ayZmb.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
};
