diff --git a/client/src/components/GameBoard.tsx b/client/src/components/GameBoard.tsx
index bca105d..8399dfb 100644
--- a/client/src/components/GameBoard.tsx
+++ b/client/src/components/GameBoard.tsx
@@ -548,8 +548,8 @@ export default function GameBoard({ gameState, currentPlayerId, actions }: GameB
@@ -563,3 +563,24 @@ export default function GameBoard({ gameState, currentPlayerId, actions }: GameB
);
}
+
+// Subcomponente para el Timer de Votación
+function VotingTimer({ onTimeout }: { onTimeout: () => void }) {
+ const [timeLeft, setTimeLeft] = useState(10);
+
+ useEffect(() => {
+ if (timeLeft <= 0) {
+ onTimeout();
+ return;
+ }
+ const interval = setInterval(() => setTimeLeft(t => t - 1), 1000);
+ return () => clearInterval(interval);
+ }, [timeLeft, onTimeout]);
+
+ return (
+
+ {timeLeft}
+
+ );
+}
+```