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