In this exercise, you’re going to be creating a state machine from scratch, and putting it in custom store.
idle, running, and paused.idle state.TOGGLE event occurs in idle, the machine should transition to running.TOGGLE event occurs in running, the machine should transition to paused.TOGGLE event occurs in paused, the machine should transition back to running.RESET event occurs in paused, the machine should transition back to idle.TOGGLE events when the Start timer and Pause timer buttons are pressed. Additionally, clicking on the elapsed time should also start the timer.state is running.paused or idle.