import React from "react";
import Menu from "../components/ui/Menu";
import { postGameStatisticsData } from "../services/WordpressFetchData";
import { useLanguage } from "../hooks/useLanguage";

export default function Results() {
	const { language } = useLanguage();

	function addPost(language) {
		postGameStatisticsData("/statistics/post", "BE");
	}

	return (
		<div className='page-container page-container--test'>
			<div className='screen screen--test'>
				<Menu />
				<div id='screen-container'>
					<button onClick={() => addPost(language)}>Finish the game</button>
				</div>
			</div>
		</div>
	);
}
