-
- {loading ? (
-
- ) : isUserSpeak ? (
- <>
-
-
-
-
- {currentLine === 1 ?
Very Good
: currentLine === 2 ? Nice Try
: currentLine === 3 ? WoW
: Well Done
}
-
-
-
-
-

-
Try Next
-
-
-

-
Try Again
-
-
-
-
-
- >
- ) : (
- <>
- {posts?.data?.map((post, ind) =>
- currentLine === ind ? (
-
-
-
-
-
-
-
-
- {posts?.data[currentLine]?.contentSourceData[0].text}
-
- {localStorage.setItem(
- 'contentText',
- posts?.data[currentLine]?.contentSourceData[0].text
- )}
-
-
+
+
+
+
+ {loading ? (
+
+ ) : isUserSpeak ? (
+ <>
+
+
+ {currentLine === 1 ? (
+
+ Very Good
+
+ ) : currentLine === 2 ? (
+
+ Nice Try
+
+ ) : currentLine === 3 ? (
+
+ WoW
+
+ ) : (
+
+ Well Done
+
+ )}
+
+
+
+
+
+
+

+
Try Next
+
+
+

+
Try Again
+
+
+
+
+ >
+ ) : (
+ <>
+ {posts?.data?.map((post, ind) =>
+ currentLine === ind ? (
+
+
+
+
+
+
+
+
{
- isUserSpeak ? <>> :
- {currentLine === posts?.data?.length ? (
- ''
- ) : (
- <>
-
-
- setIsAudioPlay(e) }}
- flag={true}
- setCurrentLine={setCurrentLine}
- setStoryBase64Data={setStoryBase64Data}
- saveIndb={saveIndb}
- setUserSpeak={setUserSpeak}
- />
- {isAudioPlay === 'recording' ? (
-
- Stop
-
- ) : (
-
- Speak
-
- )}
-
-
- >
- )}
-
+ posts?.data[currentLine]?.contentSourceData[0]
+ .text
}
-
-
-
-
+
+ {localStorage.setItem(
+ 'contentText',
+ posts?.data[currentLine]?.contentSourceData[0].text
+ )}
+
+
+ {isUserSpeak ? (
+ <>>
+ ) : (
+
+ {currentLine === posts?.data?.length ? (
+ ''
+ ) : (
+ <>
+
+
+ setIsAudioPlay(e),
+ }}
+ flag={true}
+ setCurrentLine={setCurrentLine}
+ setStoryBase64Data={setStoryBase64Data}
+ saveIndb={saveIndb}
+ setUserSpeak={setUserSpeak}
+ />
+ {isAudioPlay === 'recording' ? (
+ Stop
+ ) : (
+
+ Speak
+
+ )}
+
+
+ >
+ )}
+
+ )}
+
+
+
+
+ ) : (
+ ''
+ )
+ )}
+ >
+ )}
+
+
+ {currentLine === posts?.data?.length ? (
+
+
+
+
+
+ {sessionResult === 'pass' ? 'Well Done !' : 'Good Job !'}
+
+
+ {sessionResult === 'pass'
+ ? 'Discover More For Level Up'
+ : 'Keep trying to Improve Level'}
+
+
+
+
+
+
+ ) : (
+ ''
+ )}
- ) : (
- ''
- )
- )}
- >
- )}
-
-
-