import React from 'react'; import { SelectWrapper } from '../App.style'; export enum Difficulty { EASY = 'easy', MEDIUM = 'medium', HARD = 'hard' } type Props = { difficulty: string; setDifficulty: (difficulty: string) => void; }; const SelectDifficulty = ({ difficulty, setDifficulty }: Props) => { return ( ) => { e.preventDefault(); setDifficulty(e.target.value); }} > ); }; export default SelectDifficulty;