import { jsx as t, jsxs as e } from "react/jsx-runtime";
import { t as m, N as o } from "./index-ZQlxzdt5.js";
import { A as u } from "./AppCard-cTGNOAHy.js";
import { u as h } from "./useIsAppEnabled-V8Jl9FX-.js";
const E = function({ eventType: a, app: s }) {
  var n;
  const { getAppData: l, setAppData: i } = m(), p = l("isSunrise"), { enabled: c, updateEnabled: r } = h(s);
  return /* @__PURE__ */ t(
    u,
    {
      app: s,
      switchOnClick: (d) => {
        d ? (r(!0), i("isSunrise", !0)) : (r(!1), i("isSunrise", !1));
      },
      switchChecked: c,
      teamId: ((n = a.team) == null ? void 0 : n.id) || void 0,
      children: /* @__PURE__ */ e("div", { className: "mt-2 text-sm", children: [
        /* @__PURE__ */ e("div", { className: "flex", children: [
          /* @__PURE__ */ t("span", { className: "ltr:mr-2 rtl:ml-2", children: /* @__PURE__ */ t(o, { name: p ? "sunrise" : "sunset" }) }),
          "I am an AppCard for Event with Title: ",
          a.title
        ] }),
        " ",
        /* @__PURE__ */ e("div", { className: "mt-2", children: [
          "Edit ",
          /* @__PURE__ */ e("span", { className: "italic", children: [
            "packages/app-store/",
            s.slug,
            "/EventTypeAppCardInterface.tsx"
          ] }),
          " to play with me"
        ] })
      ] })
    }
  );
};
export {
  E as default
};
