mirror of
https://github.com/genemecija/learn-morse-code.git
synced 2026-01-15 04:49:58 +01:00
25 lines
664 B
JavaScript
25 lines
664 B
JavaScript
import React from 'react';
|
|
import '../css/App.css';
|
|
import useStraightKey from '../hooks/useStraightKey';
|
|
import GameClock from '../components/GameClock'
|
|
import MorseBufferDisplay from '../components/MorseBufferDisplay'
|
|
import MorseHistory from '../components/MorseHistory'
|
|
|
|
function TrainingMode() {
|
|
|
|
const {morseCharBuffer, morseWords} = useStraightKey('timed')
|
|
|
|
console.log('TrainingMode.js rendered')
|
|
|
|
return (
|
|
<>
|
|
<GameClock time={30} />
|
|
<MorseBufferDisplay buffer={morseCharBuffer} /><br/>
|
|
<MorseHistory morseWords={morseWords} />
|
|
</>
|
|
);
|
|
|
|
}
|
|
|
|
export default React.memo(TrainingMode);
|