import Menu from "../components/Menu";
import { postWordpressStatisticsData } from "../hooks/WordpressFetchData";
import { useLanguage } from "../hooks/useLanguage";

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

	const handleTest = () => {
		console.log("send umami test");
	};

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

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