turkmentv_front/components/lottery/winners/LotteryWinnersList.tsx

33 lines
1.1 KiB
TypeScript
Raw Normal View History

2025-01-02 12:47:39 +00:00
import { LotteryWinnerData, LotteryWinnerDataSimplified } from '@/typings/lottery/lottery.types';
import LotteryWinner from './LotteryWinner';
import { motion, AnimatePresence } from 'framer-motion';
import { v4 } from 'uuid';
2024-11-25 14:33:01 +00:00
2025-01-02 12:47:39 +00:00
const LotteryWinnersList = ({ winners }: { winners: LotteryWinnerDataSimplified[] }) => {
2024-11-25 14:33:01 +00:00
return (
2024-12-25 13:46:20 +00:00
<div className="flex flex-col gap-4 w-full max-w-[1028px]">
2024-12-29 18:02:23 +00:00
<div className="flex flex-col gap-2 w-full pb-4 border-b border-[#CECCFF]">
2025-01-06 13:17:03 +00:00
<h4 className="md:font-heading-3-regular text-[28px]">Ýeňijiler</h4>
2024-12-29 18:02:23 +00:00
<p className="md:font-base-medium text-[16px]">
The results after each stage will be shown here.
</p>
2024-12-25 13:46:20 +00:00
</div>
2024-12-27 15:23:39 +00:00
<motion.div
layout
2025-01-02 12:47:39 +00:00
className="grid md:grid-cols-3 sm:grid-cols-2 grid-cols-1 gap-x-2 gap-y-4 w-full ">
2025-01-03 13:33:10 +00:00
{winners.map((item, index) => (
<LotteryWinner
key={v4()}
phone={item.client}
ticket={item.ticket}
winnerNumber={item.winner_no}
isNew={index === winners.length - 1}
/>
))}
2024-12-27 15:23:39 +00:00
</motion.div>
2024-11-25 14:33:01 +00:00
</div>
);
};
export default LotteryWinnersList;