import { useState } from "react"; export default function KanyeOrHitlerQuiz() { const quotes = [ { text: "I am a god.", author: "Kanye", context: "Lyrics from his song 'I Am a God' (2013)" }, { text: "The Jews are the cause of all our misfortunes.", author: "Hitler", context: "Common antisemitic rhetoric used in Nazi propaganda" }, { text: "I will go down as the voice of this generation.", author: "Kanye", context: "Statement during an interview (2008)" }, { text: "The stronger must dominate and not mate with the weaker.", author: "Hitler", context: "From 'Mein Kampf' (1925)" }, { text: "I'm like a vessel, and God has chosen me to be the voice and the connector.", author: "Kanye", context: "Interview statement (2016)" }, { text: "I am the number one human being in music. That means any person that's living or breathing is number two.", author: "Kanye", context: "Statement during a concert (2013)" }, { text: "The victor will never be asked if he told the truth.", author: "Hitler", context: "Speech to the Reichstag (1939)" }, { text: "Jewish people have owned the black voice. Either it's through us or through the management.", author: "Kanye", context: "Controversial statement during an interview (2022)" }, { text: "I believe that I am acting in accordance with the will of the Almighty Creator.", author: "Hitler", context: "From 'Mein Kampf' (1925)" }, { text: "My greatest pain in life is that I will never be able to see myself perform live.", author: "Kanye", context: "Interview statement (2013)" } ]; const [currentQuoteIndex, setCurrentQuoteIndex] = useState(0); const [score, setScore] = useState(0); const [answered, setAnswered] = useState(false); const [selectedAnswer, setSelectedAnswer] = useState(null); const [gameOver, setGameOver] = useState(false); const handleAnswer = (author) => { if (answered) return; setSelectedAnswer(author); setAnswered(true); if (author === quotes[currentQuoteIndex].author) { setScore(score + 1); } }; const nextQuote = () => { if (currentQuoteIndex < quotes.length - 1) { setCurrentQuoteIndex(currentQuoteIndex + 1); setAnswered(false); setSelectedAnswer(null); } else { setGameOver(true); } }; const restartGame = () => { setCurrentQuoteIndex(0); setScore(0); setAnswered(false); setSelectedAnswer(null); setGameOver(false); }; return (

Who Said It?

Kanye West or Adolf Hitler

{!gameOver ? (
Quote {currentQuoteIndex + 1} of {quotes.length}

"{quotes[currentQuoteIndex].text}"

{answered && (

{selectedAnswer === quotes[currentQuoteIndex].author ? "Correct!" : "Incorrect!"}

This was said by {quotes[currentQuoteIndex].author}

{quotes[currentQuoteIndex].context}

)}
Score: {score}
{answered && ( )}
) : (

Game Over!

Your final score: {score} out of {quotes.length}

)}
This quiz is for educational purposes only. It highlights the importance of critical thinking and historical awareness.
); }