2024-11-25 14:33:01 +00:00
|
|
|
'use client';
|
|
|
|
|
|
|
|
|
|
import { motion } from 'framer-motion';
|
|
|
|
|
|
|
|
|
|
interface IProps {
|
|
|
|
|
index: number;
|
2024-12-25 13:46:20 +00:00
|
|
|
phone: string;
|
|
|
|
|
ticket: string;
|
2024-11-25 14:33:01 +00:00
|
|
|
}
|
|
|
|
|
|
2024-12-25 13:46:20 +00:00
|
|
|
const LotteryWinner = ({ index, phone, ticket }: IProps) => {
|
2024-11-25 14:33:01 +00:00
|
|
|
return (
|
|
|
|
|
<motion.div
|
|
|
|
|
initial={{
|
|
|
|
|
opacity: 0,
|
|
|
|
|
translateY: 20,
|
|
|
|
|
}}
|
|
|
|
|
animate={{
|
|
|
|
|
opacity: 1,
|
|
|
|
|
translateY: 0,
|
|
|
|
|
}}
|
2024-12-25 13:46:20 +00:00
|
|
|
className="flex flex-col gap-2 md:pb-4 pb-3 border-b w-full border-[#CECCFF]">
|
|
|
|
|
<h4 className="md:font-heading-6-regular text-[20px] leading-[28px]">
|
2024-12-13 11:37:37 +00:00
|
|
|
The winner of the {index + 1} stage:
|
|
|
|
|
</h4>
|
2024-12-25 13:46:20 +00:00
|
|
|
<div className="flex items-center gap-4">
|
|
|
|
|
<p className="font-base-medium">{phone}</p>
|
|
|
|
|
<div className="w-1 h-1 rounded-full bg-lightOnSurfaceVariant"></div>
|
|
|
|
|
<p className="font-base-medium">{ticket}</p>
|
|
|
|
|
</div>
|
2024-11-25 14:33:01 +00:00
|
|
|
</motion.div>
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default LotteryWinner;
|