import React from 'react'; import { View, ViewStyle, TouchableOpacity } from 'react-native'; import { useAppTheme } from '@theme'; import { getStyles } from './card.styles'; interface CardProps { children: React.ReactNode; style?: ViewStyle; onPress?: () => void; } export const Card: React.FC = ({ children, style, onPress }) => { const { colors } = useAppTheme(); const styles = getStyles(colors); if (onPress) { return ( {children} ); } return {children}; }; export default Card;