import { useState } from 'react'; import { Modal, Button, ModalOverlay, ModalContent, ModalHeader, ModalFooter, ModalBody, ModalCloseButton, FormControl, FormLabel, Radio, RadioGroup, HStack, Select, Divider, } from '@chakra-ui/react'; import { useDraughtsGame } from '../../game/DraughtsGameContext'; import { useDraughtsSettings } from '../DraughtsSettingsContext'; import { ComputerDifficulty } from '../constants/computer-difficulty'; import { Players } from '@draughts/core'; export function DraughtsSettingsModal() { const { restartGame } = useDraughtsGame(); const { userPlayer, updateSettings, computerDifficulty, settingsModal: { isOpen, onClose }, } = useDraughtsSettings(); const [computerDifficultySelection, setComputerDifficultySelection] = useState(computerDifficulty); const [userPlayerSelection, setUserPlayerSelection] = useState(userPlayer); return ( Settings Pilih Warna Putih Hitam Computer difficulty ); }