import React from 'react' import { useSelector, useDispatch } from 'react-redux' import { debounce } from 'debounce' import { setMaxLength, setWpm, setOffset, setLang } from '../store/actions' import { Slider } from './Slider' import { selectOffset, selectLang } from '../store/selectors' const availableLanguages = ['en', 'de'] export const Options = () => { const dispatch = useDispatch() const maxLength = useSelector(state => state.maxLength) const wpm = useSelector(state => state.wpm) const offset = useSelector(selectOffset) const lang = useSelector(selectLang) return (