import React from 'react'; import { endScore } from './QuizGame'; import { SecondSeconds } from './Timer'; import { SecondMinutes } from './Timer'; import { useNavigate } from 'react-router-dom'; import Conffetti from './Conffetti'; import { link } from './QuizGame'; import { InformationTrackFromDB } from './Truck'; const UpdateTrackScore = () => { InformationTrackFromDB.forEach(track => { if(link === track.img.split(/\.(?=[^\.]+$)/)[0].slice(18)){ track.progress = endScore * 10 } }) } const Result = () => { const navigate = useNavigate(); UpdateTrackScore(); return ( <>