import React from 'react'; import { View, Text } from 'react-native'; import { Ionicons } from '@expo/vector-icons'; import { useTheme } from '../../utils/ThemeContext'; export interface CostItem { action: string; cost: number; icon: keyof typeof Ionicons.glyphMap; } interface CostCardProps { title: string; costs: CostItem[]; } export const CostCard: React.FC = ({ title, costs }) => { const { theme } = useTheme(); return ( {title} {costs.map((item, index) => ( {item.action} {item.cost} Mana ))} ); }; export default CostCard;