import { LinearGradient } from 'expo-linear-gradient'; import React from 'react'; import { Text, Pressable, View, StyleSheet } from 'react-native'; import type { Mood } from '@/store/store'; interface MoodCardProps { mood: Mood; onPress: () => void; onFavoritePress?: () => void; onLongPress?: () => void; isActive?: boolean; } export const MoodCard = ({ mood, onPress, onFavoritePress, onLongPress, isActive, }: MoodCardProps) => { // Check if mood has light colors (for text color adjustment) const isLightMood = mood.name === 'Licht'; const textColor = isLightMood ? 'text-gray-900' : 'text-white'; const badgeBg = isLightMood ? 'bg-gray-900/20' : 'bg-white/20'; const badgeText = isLightMood ? 'text-gray-900/90' : 'text-white/90'; return ( {/* Mood Info */} {mood.name} {mood.isCustom && ( Benutzerdefiniert )} ); }; const styles = StyleSheet.create({ card: { aspectRatio: 16 / 9, }, gradient: { width: '100%', height: '100%', }, activeCard: { opacity: 0.8, transform: [{ scale: 1.05 }], }, });