import {StyleSheet, Text, View} from 'react-native'; import Card from '../UI/Card'; import {Button} from '../UI/Button'; const CacheCardItem = ({cache, isAdmin, isClaimed, isSelected, onEdit, onDelete, onSelect, disabled}) => { // Initialisation ------------- const displayName = cache.name || cache.clue || 'Unnamed Cache'; // State ---------------------- // Handlers ------------------- // View ----------------------- return ( {displayName} {cache.name ? ( {cache.clue} ) : null} {/* Players see team-specific claim status; admins see no status */} {!isAdmin && !disabled && ( {isClaimed ? 'Claimed' : 'Available'} )} {isAdmin ? ( <>