In this exercise, we’re going to take the machine you created and use it within XState with XState Svelte. If you created the machine using object notation, this should be pretty straightforward.
xstate and @xstate/sveltetimerMachine.js, use createMachine(...) to create a state machine in XState.Timer.svelte, use the useMachine(...) hook with that created machine. It will return state and send, where state is a readable store.$state.value, so use that instead of state.