analytica-frontend-lib 1.1.83 → 1.1.84

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -11879,16 +11879,34 @@ var QuizFooter = (0, import_react36.forwardRef)(
11879
11879
  children: "Avan\xE7ar"
11880
11880
  }
11881
11881
  )
11882
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "flex flex-row items-center justify-end w-full", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
11883
- Button_default,
11884
- {
11885
- variant: "solid",
11886
- action: "primary",
11887
- size: "medium",
11888
- onClick: () => openModal("modalResolution"),
11889
- children: "Ver Resolu\xE7\xE3o"
11890
- }
11891
- ) })
11882
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex flex-row items-center justify-between w-full", children: [
11883
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { children: quiz?.canRetry && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
11884
+ Button_default,
11885
+ {
11886
+ variant: "link",
11887
+ action: "primary",
11888
+ size: "medium",
11889
+ onClick: () => openModal("modalResolution"),
11890
+ children: "Ver Resolu\xE7\xE3o"
11891
+ }
11892
+ ) }),
11893
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
11894
+ Button_default,
11895
+ {
11896
+ variant: "solid",
11897
+ action: "primary",
11898
+ size: "medium",
11899
+ onClick: () => {
11900
+ if (quiz?.canRetry) {
11901
+ onRepeat?.();
11902
+ } else {
11903
+ openModal("modalResolution");
11904
+ }
11905
+ },
11906
+ children: quiz?.canRetry ? `Repetir ${getTypeLabel(quiz.type)}` : "Ver Resolu\xE7\xE3o"
11907
+ }
11908
+ )
11909
+ ] })
11892
11910
  }
11893
11911
  ),
11894
11912
  /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(