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.
@@ -5878,16 +5878,34 @@ var QuizFooter = (0, import_react14.forwardRef)(
5878
5878
  children: "Avan\xE7ar"
5879
5879
  }
5880
5880
  )
5881
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "flex flex-row items-center justify-end w-full", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
5882
- Button_default,
5883
- {
5884
- variant: "solid",
5885
- action: "primary",
5886
- size: "medium",
5887
- onClick: () => openModal("modalResolution"),
5888
- children: "Ver Resolu\xE7\xE3o"
5889
- }
5890
- ) })
5881
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "flex flex-row items-center justify-between w-full", children: [
5882
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { children: quiz?.canRetry && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
5883
+ Button_default,
5884
+ {
5885
+ variant: "link",
5886
+ action: "primary",
5887
+ size: "medium",
5888
+ onClick: () => openModal("modalResolution"),
5889
+ children: "Ver Resolu\xE7\xE3o"
5890
+ }
5891
+ ) }),
5892
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
5893
+ Button_default,
5894
+ {
5895
+ variant: "solid",
5896
+ action: "primary",
5897
+ size: "medium",
5898
+ onClick: () => {
5899
+ if (quiz?.canRetry) {
5900
+ onRepeat?.();
5901
+ } else {
5902
+ openModal("modalResolution");
5903
+ }
5904
+ },
5905
+ children: quiz?.canRetry ? `Repetir ${getTypeLabel(quiz.type)}` : "Ver Resolu\xE7\xE3o"
5906
+ }
5907
+ )
5908
+ ] })
5891
5909
  }
5892
5910
  ),
5893
5911
  /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(