import { View } from "react-native"; import { Button } from "@/components/ui/Button"; import { Card } from "@/components/ui/Card"; import { Chip } from "@/components/ui/Chip"; import { Field } from "@/components/ui/Field"; import { Text } from "@/components/ui/Text"; import { colors } from "@/lib/theme"; import { formatETB } from "@/lib/utils"; export function LoyaltyRedeemRow({ points, activeVoucher, voucher, discount, onChangeVoucher, onApplyDemo, onApplyLoyalty, onRedeemPoints, canRedeem, }: { points: number; activeVoucher?: string | null; voucher: string; discount: number; onChangeVoucher: (v: string) => void; onApplyDemo: () => void; onApplyLoyalty: () => void; onRedeemPoints: () => void; canRedeem: boolean; }) { return ( Voucher & points {activeVoucher ? ( ) : null} {!activeVoucher ? ( You have {points} pts. Redeem 100 pts for a GISHEN10 voucher at checkout.