import e from "react";
import { Trans as a } from "react-i18next";
import "./accelbyte-widgets432.mjs";
const d = (c) => {
  const { additionalAppInfo: f } = c, { platforms: t, releaseDate: n, primaryGenre: o, genres: l, developer: i, publisher: r, websiteUrl: m, forumUrl: s } = f;
  return !t && !n && !l && !i && !r && !m && !s ? null : /* @__PURE__ */ e.createElement("div", { className: "gameDetailInfo" }, /* @__PURE__ */ e.createElement("ul", null, t && t.length > 0 && /* @__PURE__ */ e.createElement("li", { className: "infoWrapper" }, /* @__PURE__ */ e.createElement("h2", { className: "infoTitle" }, /* @__PURE__ */ e.createElement(a, { i18nKey: "GameDetailViewPage.detailInfo.platform" }, "Platform")), /* @__PURE__ */ e.createElement("p", { className: "infoContent" }, t.join(", "))), n && /* @__PURE__ */ e.createElement("li", { className: "infoWrapper" }, /* @__PURE__ */ e.createElement("h2", { className: "infoTitle" }, /* @__PURE__ */ e.createElement(a, { i18nKey: "GameDetailViewPage.detailInfo.releaseDate" }, "Release Date")), /* @__PURE__ */ e.createElement("p", { className: "infoContent" }, /* @__PURE__ */ e.createElement(a, { i18nKey: "GameDetailViewPage.detailInfo.releaseDateValue" }, { releaseDate: new Date(n) }))), o && /* @__PURE__ */ e.createElement("li", { className: "infoWrapper" }, /* @__PURE__ */ e.createElement("h2", { className: "infoTitle" }, /* @__PURE__ */ e.createElement(a, { i18nKey: "GameDetailViewPage.detailInfo.primaryGenre" }, "Primary Genre")), /* @__PURE__ */ e.createElement("p", { className: "infoContent" }, o)), l && l.length > 0 && /* @__PURE__ */ e.createElement("li", { className: "infoWrapper" }, /* @__PURE__ */ e.createElement("h2", { className: "infoTitle" }, /* @__PURE__ */ e.createElement(a, { i18nKey: "GameDetailViewPage.detailInfo.genre" }, "Genre")), /* @__PURE__ */ e.createElement("p", { className: "infoContent" }, l.join(", "))), i && /* @__PURE__ */ e.createElement("li", { className: "infoWrapper" }, /* @__PURE__ */ e.createElement("h2", { className: "infoTitle" }, /* @__PURE__ */ e.createElement(a, { i18nKey: "GameDetailViewPage.detailInfo.developer" }, "Developer")), /* @__PURE__ */ e.createElement("p", { className: "infoContent" }, i)), r && /* @__PURE__ */ e.createElement("li", { className: "infoWrapper" }, /* @__PURE__ */ e.createElement("h2", { className: "infoTitle" }, /* @__PURE__ */ e.createElement(a, { i18nKey: "GameDetailViewPage.detailInfo.publisher" }, "Publisher")), /* @__PURE__ */ e.createElement("p", { className: "infoContent" }, r)), m && /* @__PURE__ */ e.createElement("li", { className: "infoWrapper" }, /* @__PURE__ */ e.createElement("h2", { className: "infoTitle" }, /* @__PURE__ */ e.createElement(a, { i18nKey: "GameDetailViewPage.detailInfo.websiteUrl" }, "Website URL")), /* @__PURE__ */ e.createElement("p", { className: "infoContent" }, m)), s && /* @__PURE__ */ e.createElement("li", { className: "infoWrapper" }, /* @__PURE__ */ e.createElement("h2", { className: "infoTitle" }, /* @__PURE__ */ e.createElement(a, { i18nKey: "GameDetailViewPage.detailInfo.forumUrl" }, "Forum URL")), /* @__PURE__ */ e.createElement("p", { className: "infoContent" }, s))));
};
export {
  d as default
};
