import React, {useState} from 'react' import {Card, CardContent, CardHeader,} from "@/components/ui/card" import {Tabs, TabsContent, TabsList, TabsTrigger,} from "@/components/ui/tabs" import {Badge} from "@/components/ui/badge" import { Input } from "@/components/ui/input" import {selectFixedCashoutMethods, selectVariableCashoutMethods} from "@/models/cashoutMethodSlice.ts"; import {CashoutMethodOut, UserWalletBalance} from "@/api" import {formatCentsToUSD} from "@/lib/utils.ts"; import {useSelector} from 'react-redux' import {motion} from "framer-motion"; import {Drawer, DrawerContent, DrawerDescription, DrawerHeader, DrawerTitle,} from "@/components/ui/drawer" import {useAppSelector} from "@/hooks.ts"; const CashoutAcknowledgement = () => { return ( <>
Your request has been successfully submitted!
Your redemption link will be on the history page.
> ) } const CashoutReview: React.FC<{ cashout_method: CashoutMethodOut }> = ({cashout_method}) => { return ( <>You are about to redeem to a card.
{cashout_method.name}
{/*{data.terms}
*/} > ) } const CreateCashout = () => { return ( <> > ) } const VariableCashoutMethodPreview: React.FC<{ cashout_method: CashoutMethodOut }> = ({cashout_method}) => { return ( <>Your balance is {formatCentsToUSD(wallet.amount)}.
You can redeem {formatCentsToUSD(wallet.redeemable_amount)} now.
(a portion of each survey is delayed by 30 days)