import { useState } from 'react'; export default function QuoteQuiz() { // Quiz data with much more difficult quotes const quizData = [ { quote: "Great liars are also great magicians.", source: "Hitler", context: "From 'Mein Kampf', discussing propaganda techniques" }, { quote: "I'm a creative genius and there's no other way to word it.", source: "Kanye", context: "Said during a 2013 interview with Jimmy Kimmel" }, { quote: "The victor will never be asked if he told the truth.", source: "Hitler", context: "Statement made in private to his generals, 1939" }, { quote: "People always tell you, 'Be humble. Be humble.' When was the last time someone told you to be amazing?", source: "Kanye", context: "From a 2009 interview with Details magazine" }, { quote: "If you want to shine like the sun, first you have to burn like it.", source: "Neither", context: "This is actually a quote from Adolf Hitler's propaganda minister Joseph Goebbels" }, { quote: "I am the law, and I am the father and the sun and the moon.", source: "Neither", context: "This is a quote from the character Immortan Joe in the film 'Mad Max: Fury Road'" }, { quote: "I am not impressed by money, followers, degrees, or titles. I'm impressed by the way someone treats other human beings.", source: "Neither", context: "This is a popular quote often misattributed to various people, but has no verified source" }, { quote: "I liberate minds with my music. That's more important than liberating a few people from apartheid or whatever.", source: "Kanye", context: "Said in a 2015 interview with the Sunday Times" }, { quote: "Words build bridges into unexplored regions.", source: "Hitler", context: "From a speech on propaganda in 1936" }, { quote: "I'm like a vessel, and God has chosen me to be the voice and the connector.", source: "Kanye", context: "From a 2016 interview discussing his creative process" }, { quote: "It is not truth that matters, but victory.", source: "Hitler", context: "From a private conversation recorded by Hermann Rauschning" }, { quote: "My greatest pain in life is that I will never be able to see myself perform live.", source: "Kanye", context: "Said during a 2013 interview with W Magazine" }, { quote: "Humanitarianism is the expression of stupidity and cowardice.", source: "Hitler", context: "From a dinner speech in 1942" }, { quote: "I feel like I'm too busy writing history to read it.", source: "Kanye", context: "Tweet from January 2016" }, { quote: "The masses are blind and stupid.", source: "Neither", context: "This is a paraphrase of ideas from Nietzsche, not a direct quote from either Kanye or Hitler" }, { quote: "I am the nucleus.", source: "Kanye", context: "From a 2013 New York Times interview" }, { quote: "The doom of a nation can be averted only by a storm of flowing passion, but only those who are passionate themselves can arouse passion in others.", source: "Hitler", context: "From a speech in Munich, 1923" }, { quote: "For me, money is not my definition of success. Inspiring people is a definition of success.", source: "Kanye", context: "From a 2015 interview with Time magazine" }, { quote: "Obstacles do not exist to be surrendered to, but only to be broken.", source: "Hitler", context: "From a speech to Nazi party members, 1933" }, { quote: "I will be the leader of a company that ends up being worth billions of dollars, because I got the answers.", source: "Kanye", context: "From a 2013 interview with Sway Calloway" } ]; const [currentQuestionIndex, setCurrentQuestionIndex] = useState(0); const [score, setScore] = useState(0); const [showAnswer, setShowAnswer] = useState(false); const [selectedAnswer, setSelectedAnswer] = useState(null); const [gameOver, setGameOver] = useState(false); const handleAnswer = (answer) => { setSelectedAnswer(answer); setShowAnswer(true); if (answer === quizData[currentQuestionIndex].source) { setScore(score + 1); } }; const nextQuestion = () => { setShowAnswer(false); setSelectedAnswer(null); if (currentQuestionIndex < quizData.length - 1) { setCurrentQuestionIndex(currentQuestionIndex + 1); } else { setGameOver(true); } }; const restartGame = () => { setCurrentQuestionIndex(0); setScore(0); setShowAnswer(false); setSelectedAnswer(null); setGameOver(false); }; // Function to get feedback based on score const getFeedback = () => { const percentage = (score / quizData.length) * 100; if (percentage === 100) return "Incredible! Are you a historian or Kanye's biographer?"; if (percentage >= 80) return "Impressive! You really know your controversial figures."; if (percentage >= 60) return "Good job! This was not easy."; if (percentage >= 40) return "Not bad for such difficult quotes."; if (percentage >= 20) return "These were tough quotes - don't feel bad!"; return "Wow, these quotes really are hard to distinguish!"; }; return (

Who Said It:

HARD MODE
{!gameOver ? ( <>
Question {currentQuestionIndex + 1}/{quizData.length} Score: {score}

"{quizData[currentQuestionIndex].quote}"

{!showAnswer ? (
) : (
{selectedAnswer === quizData[currentQuestionIndex].source ? "Correct!" : `Incorrect! It was ${quizData[currentQuestionIndex].source}.`}

{quizData[currentQuestionIndex].context}

)} ) : (

Quiz Complete!

Your final score: {score}/{quizData.length}

{getFeedback()}

)}

This hard mode features much more ambiguous quotes that are genuinely difficult to attribute correctly. Some quotes may surprise you with their actual source.

); }