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.mjs CHANGED
@@ -11850,16 +11850,34 @@ var QuizFooter = forwardRef21(
11850
11850
  children: "Avan\xE7ar"
11851
11851
  }
11852
11852
  )
11853
- ] }) : /* @__PURE__ */ jsx51("div", { className: "flex flex-row items-center justify-end w-full", children: /* @__PURE__ */ jsx51(
11854
- Button_default,
11855
- {
11856
- variant: "solid",
11857
- action: "primary",
11858
- size: "medium",
11859
- onClick: () => openModal("modalResolution"),
11860
- children: "Ver Resolu\xE7\xE3o"
11861
- }
11862
- ) })
11853
+ ] }) : /* @__PURE__ */ jsxs37("div", { className: "flex flex-row items-center justify-between w-full", children: [
11854
+ /* @__PURE__ */ jsx51("span", { children: quiz?.canRetry && /* @__PURE__ */ jsx51(
11855
+ Button_default,
11856
+ {
11857
+ variant: "link",
11858
+ action: "primary",
11859
+ size: "medium",
11860
+ onClick: () => openModal("modalResolution"),
11861
+ children: "Ver Resolu\xE7\xE3o"
11862
+ }
11863
+ ) }),
11864
+ /* @__PURE__ */ jsx51(
11865
+ Button_default,
11866
+ {
11867
+ variant: "solid",
11868
+ action: "primary",
11869
+ size: "medium",
11870
+ onClick: () => {
11871
+ if (quiz?.canRetry) {
11872
+ onRepeat?.();
11873
+ } else {
11874
+ openModal("modalResolution");
11875
+ }
11876
+ },
11877
+ children: quiz?.canRetry ? `Repetir ${getTypeLabel(quiz.type)}` : "Ver Resolu\xE7\xE3o"
11878
+ }
11879
+ )
11880
+ ] })
11863
11881
  }
11864
11882
  ),
11865
11883
  /* @__PURE__ */ jsx51(