File size: 698 Bytes
6864389 a64b653 6864389 aeb9637 6864389 a64b653 6864389 35af7d4 018dc4e 35af7d4 6864389 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
import { Button } from "@/components/ui/button";
import { useState } from "react";
import { useTranslation } from "@/hooks/useTranslation";
interface ActionButtonsProps {
isCorrect: boolean;
onNextRound: () => void;
onGameReview: () => void;
currentScore: number;
avgWordsPerRound: number;
sessionId: string;
currentTheme: string;
}
export const ActionButtons = ({
isCorrect,
onNextRound,
onGameReview,
}: ActionButtonsProps) => {
const t = useTranslation();
return (
<div className="flex justify-center gap-4">
<Button onClick={onNextRound} className="text-white">
{isCorrect ? t.game.nextRound : t.game.nextWord} ⏎
</Button>
</div>
);
}; |