turkmentv_front/components/lottery/winners/LotteryWinnersList.tsx

26 lines
921 B
TypeScript
Raw Normal View History

2024-12-23 19:32:36 +00:00
import { LotteryWinnerData } from "@/typings/lottery/lottery.types";
import LotteryWinner from "./LotteryWinner";
2024-11-25 14:33:01 +00:00
2024-12-23 19:32:36 +00:00
const LotteryWinnersList = ({ winners }: { winners: LotteryWinnerData[] }) => {
2024-11-25 14:33:01 +00:00
return (
2024-12-13 11:56:06 +00:00
<div className="w-full md:p-8 p-6">
2024-12-16 14:36:10 +00:00
<div className="flex flex-col w-full gap-4 md:max-h-[548px] sm:max-h-[276px] max-h-[438px] h-full overflow-y-auto pr-2">
2024-12-13 11:56:06 +00:00
<div className="flex flex-col gap-2 md:pb-4 pb-3 border-b border-lightOutlineVariant">
<h4 className="font-heading-3-regular">Results</h4>
2024-12-23 19:32:36 +00:00
<p className="font-base-medium">
The results after each stage will be shown here.
</p>
2024-12-13 11:56:06 +00:00
</div>
2024-11-25 14:33:01 +00:00
2024-12-13 11:56:06 +00:00
<div className="flex flex-col w-full gap-4">
{winners.map((_, index) => (
<LotteryWinner number="8 XX XX-XX-XX" index={index} />
))}
</div>
2024-12-13 11:37:37 +00:00
</div>
2024-11-25 14:33:01 +00:00
</div>
);
};
export default LotteryWinnersList;