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.
@@ -5903,16 +5903,34 @@ var QuizFooter = forwardRef11(
5903
5903
  children: "Avan\xE7ar"
5904
5904
  }
5905
5905
  )
5906
- ] }) : /* @__PURE__ */ jsx21("div", { className: "flex flex-row items-center justify-end w-full", children: /* @__PURE__ */ jsx21(
5907
- Button_default,
5908
- {
5909
- variant: "solid",
5910
- action: "primary",
5911
- size: "medium",
5912
- onClick: () => openModal("modalResolution"),
5913
- children: "Ver Resolu\xE7\xE3o"
5914
- }
5915
- ) })
5906
+ ] }) : /* @__PURE__ */ jsxs17("div", { className: "flex flex-row items-center justify-between w-full", children: [
5907
+ /* @__PURE__ */ jsx21("span", { children: quiz?.canRetry && /* @__PURE__ */ jsx21(
5908
+ Button_default,
5909
+ {
5910
+ variant: "link",
5911
+ action: "primary",
5912
+ size: "medium",
5913
+ onClick: () => openModal("modalResolution"),
5914
+ children: "Ver Resolu\xE7\xE3o"
5915
+ }
5916
+ ) }),
5917
+ /* @__PURE__ */ jsx21(
5918
+ Button_default,
5919
+ {
5920
+ variant: "solid",
5921
+ action: "primary",
5922
+ size: "medium",
5923
+ onClick: () => {
5924
+ if (quiz?.canRetry) {
5925
+ onRepeat?.();
5926
+ } else {
5927
+ openModal("modalResolution");
5928
+ }
5929
+ },
5930
+ children: quiz?.canRetry ? `Repetir ${getTypeLabel(quiz.type)}` : "Ver Resolu\xE7\xE3o"
5931
+ }
5932
+ )
5933
+ ] })
5916
5934
  }
5917
5935
  ),
5918
5936
  /* @__PURE__ */ jsx21(