-
{questions[currentQuestion].title}
-
{questions[currentQuestion].description}
-
-
- {questions[currentQuestion].biggerRuler}
-
-
-
- {questions[currentQuestion].smallerRuler}
-
-
-
-
-
- {isTabletOrMobile ? (
-
- {chosenAnswers.map((answer) => (
-
-
-
- ))}
-
- ) : (
-
- {chosenAnswers.map((answer) => (
-
-
-
- ))}
-
- )}
-
- {chosenAnswers.length === availableAnswers.length ? (
-
{
- handleAnswerOptionClick(chosenAnswers);
- loading && onExitClick();
- }}
- >
- {loading ? (
-
- ) : (
- <>
- {currentQuestion + 1 >= questions.length
- ? "See Results"
- : "Next Question"}
-
- >
- )}
-
- ) : (
-
- {availableAnswers.map((answer, index) => (
-
-
-
- ))}
-
- )}
-
-
-