moved EtaCard

This commit is contained in:
Didier Palma
2026-05-22 18:56:19 -06:00
parent f1ab356ba2
commit a2626486c3
2 changed files with 54 additions and 0 deletions

View File

@@ -0,0 +1,54 @@
import { View, Text, StyleSheet } from 'react-native';
import { Colors } from '../constants/theme';
type EtaCardProps = {
minutes?: number;
status?: string;
};
export default function EtaCard({
minutes = 12,
status = 'En Camino',
}: EtaCardProps) {
const theme = Colors.light;
return (
<View style={[styles.card, { backgroundColor: theme.backgroundElement }]}>
<Text style={[styles.label, { color: theme.textSecondary }]}>
ETA estimado
</Text>
<Text style={[styles.time, { color: theme.text }]}>
{minutes} min
</Text>
<Text style={[styles.status, { color: theme.textSecondary }]}>
{status}
</Text>
</View>
);
}
const styles = StyleSheet.create({
card: {
margin: 15,
padding: 20,
borderRadius: 16,
},
label: {
fontSize: 12,
marginBottom: 6,
},
time: {
fontSize: 32,
fontWeight: 'bold',
marginBottom: 6,
},
status: {
fontSize: 14,
fontWeight: '600',
},
});