import React from "react"; import { useGame } from "../../hooks/useGame"; import sucessIcon from "../../assets/img/icons/behaviour-type-success.svg"; import errorIcon from "../../assets/img/icons/behaviour-type-error.svg"; export default function GameAnwerExplanation({ questionId }) { const { answers, contextGameDatas, setCurrentGameModal, checkIfGameIsComplete } = useGame(); const answer = answers[questionId]; const answerExplanation = contextGameDatas.gameObjects[questionId].attrs.objectBehaviourDescription ?? "Pas d'explication pour cette question"; const objectPictureUrl = contextGameDatas.gameObjects[questionId].attrs.objectPictureUrl; return (
{answerExplanation}