+ className="p-3 bg-[#5D5D72] rounded-full overflow-hidden">
{
disabled={isSpinning || isCountingDown}
className={`mt-6 px-6 py-3 rounded-full text-white font-bold ${
isSpinning || isCountingDown
- ? "bg-gray-400 cursor-not-allowed"
- : "bg-blue-500 hover:bg-blue-700"
- }`}
- >
+ ? 'bg-gray-400 cursor-not-allowed'
+ : 'bg-blue-500 hover:bg-blue-700'
+ }`}>
{isCountingDown
? `Starting in ${countdown}...`
: isSpinning
- ? "Spinning..."
- : "Spin the Wheel"}
+ ? 'Spinning...'
+ : 'Spin the Wheel'}
);
diff --git a/components/lottery/winners/LotteryWinner.tsx b/components/lottery/winners/LotteryWinner.tsx
new file mode 100644
index 0000000..c551b8f
--- /dev/null
+++ b/components/lottery/winners/LotteryWinner.tsx
@@ -0,0 +1,28 @@
+'use client';
+
+import { motion } from 'framer-motion';
+
+interface IProps {
+ index: number;
+ number: string;
+}
+
+const LotteryWinner = ({ index, number }: IProps) => {
+ return (
+
+ The winner of the {index + 1} stage:
+ 8 XX XX-XX-XX
+
+ );
+};
+
+export default LotteryWinner;
diff --git a/components/lottery/winners/LotteryWinnersList.tsx b/components/lottery/winners/LotteryWinnersList.tsx
new file mode 100644
index 0000000..40fc344
--- /dev/null
+++ b/components/lottery/winners/LotteryWinnersList.tsx
@@ -0,0 +1,18 @@
+import LotteryWinner from './LotteryWinner';
+
+const LotteryWinnersList = ({ winners }: { winners: number[] }) => {
+ return (
+
+
+
Results
+
The results after each stage will be shown here.
+
+
+ {winners.map((_, index) => (
+
+ ))}
+
+ );
+};
+
+export default LotteryWinnersList;