import { aM as o, aK as d, aP as i } from "./index-GTnBs7av.js";
import { A as m } from "./AppCard-Q28K7Yaw.js";
import { u } from "./useIsAppEnabled-7UywjsU4.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
};
