import React from 'react'; import { View, Text, Image, StyleSheet } from 'react-native'; import { GradientCard } from './GradientCard'; import { Button } from './Button'; import { useTheme } from '../theme/context'; import type { Reward } from '../types'; // ───────────────────────────────────────────────────────────────────────────── // Props // ───────────────────────────────────────────────────────────────────────────── interface RewardCardProps { reward: Reward; onRedeem?: () => void; disabled?: boolean; style?: object; } // ───────────────────────────────────────────────────────────────────────────── // Component // ───────────────────────────────────────────────────────────────────────────── export function RewardCard({ reward, onRedeem, disabled = false, style }: RewardCardProps) { const theme = useTheme(); const isAvailable = reward.available && !disabled; return ( {reward.imageUrl ? ( ) : ( 🎁 )} {reward.name} {reward.description} {reward.cost} {reward.currency} {onRedeem && (