From 8caa77413ea372e5cbd2980a9922d701af359c04 Mon Sep 17 00:00:00 2001 From: Max Nanis Date: Wed, 28 May 2025 04:41:37 +0100 Subject: initial commit --- src/pages/Offerwall.tsx | 101 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 src/pages/Offerwall.tsx (limited to 'src/pages/Offerwall.tsx') diff --git a/src/pages/Offerwall.tsx b/src/pages/Offerwall.tsx new file mode 100644 index 0000000..acce696 --- /dev/null +++ b/src/pages/Offerwall.tsx @@ -0,0 +1,101 @@ +import React from 'react' +import {Separator} from "@/components/ui/separator" +import {Link} from '@mui/material'; + +import {Card, CardContent, CardFooter, CardHeader, CardTitle} from "@/components/ui/card.tsx"; +import {ScrollArea} from "@/components/ui/scroll-area.tsx"; +import {CheckIcon, MessageCircleQuestionIcon, XIcon} from "lucide-react" +import {SoftPairBucket} from "@/api/models/soft-pair-bucket.ts" +import {useAppSelector} from '@/hooks' + +const BucketStatus: React.FC = ({bucket}) => { + switch (bucket.eligibility) { + case "eligible": + return ; + case "conditional": + return ; + case "ineligible": + return ; + } +} + +const CallToAction: React.FC = ({bucket}) => { + switch (bucket.eligibility) { + case "eligible": + return + + ; + case "conditional": + return ; + + case "ineligible": + return ; + } +} + +const Offerwall = () => { + const buckets = useAppSelector(state => state.buckets) + + return ( + +
+ + {buckets.map((bucket) => ( + + + + Card 1 + + + + {/**/} + {/*4.5*/} + + + + + {/**/} + {/* */} + {/**/} + + +
+

Tags

+ {bucket.contents.map((survey) => ( + <> +
+ {survey.id_code} - {survey.loi} seconds - {survey.payout} cents +
+ + + ))} +
+
+ +
+ +
+ ))} + +
+ + ) +} + +export {Offerwall} \ No newline at end of file -- cgit v1.2.3