import { useState } from 'react' import { Image, Window, Button, Downloader } from './components' import { fetchGameData } from './utils/fetchGameData' import { GameAssetsDownloader, GameDataDownloader } from './config/GameDownloader' const Main: React.FC = () => { const [_error, setError] = useState('') const [_response, setResponse] = useState('') const [_loading, setLoading] = useState(false) const callback = (message: string, error = false): void => { if (error) return setError(message) if (message === 'COMPLETED') setLoading(false) else setResponse(message) } return ( I would like to: ) } export default Main