import React from 'react';
import { View, StyleSheet, ViewStyle } from 'react-native';
import { LinearGradient } from 'expo-linear-gradient';
import { colors, borderRadius, shadows } from '../../theme';
interface CardProps {
children: React.ReactNode;
variant?: 'default' | 'glass' | 'gradient';
style?: ViewStyle;
}
export function Card({ children, variant = 'default', style }: CardProps) {
if (variant === 'gradient') {
return (
{children}
);
}
if (variant === 'glass') {
return (
{children}
);
}
return (
{children}
);
}
const styles = StyleSheet.create({
container: {
borderRadius: borderRadius.lg,
padding: 16,
},
default: {
backgroundColor: colors.background.card,
borderWidth: 1,
borderColor: colors.border.light,
},
glass: {
backgroundColor: colors.glass.background,
borderWidth: 1,
borderColor: colors.glass.border,
},
gradient: {
borderWidth: 1,
borderColor: colors.border.accent,
},
});