import React from "react"; import anwserIconSafe from "../../assets/img/icons/anwser_icon_safe.svg"; import anwserIconUnsafe from "../../assets/img/icons/anwser_icon_unsafe.svg"; import { useGame } from "../../hooks/useGame"; import { useUser } from "../../hooks/useUser"; import Loading from "../animations/Loading"; export default function GameQuestion({ questionId, correctAnswer }, ...props) { const { answerQuestion, contextGameDatas } = useGame(); const { screensTranslations } = useUser(); if (!screensTranslations || !screensTranslations.tutorial) return ; const currentScreenTranslations = screensTranslations.game; const objectPictureUrl = contextGameDatas.gameObjects[questionId].attrs.objectPictureUrl; function handleAnswer(questionId, answer) { answerQuestion(questionId, answer); } return (

{currentScreenTranslations.found}

{currentScreenTranslations.is_it_secure}

{currentScreenTranslations.is_it_secure_question}

{/*

{correctAnswer}

*/}
); }