import { View, Text, StyleSheet, Pressable } from 'react-native'; interface EnvironmentCardProps { name: string; publicUrl: string; status: number; url: string; id: number; onPress: () => void; } export default function EnvironmentCard({ name, publicUrl, status, url, id, onPress }: EnvironmentCardProps) { return ( {name} {publicUrl && Public URL: {publicUrl}} {status === 1 && Status: Running} {status === 2 && Status: Stopped} {status === 3 && Status: Pending} URL: {url} ); } const styles = StyleSheet.create({ card: { backgroundColor: 'white', borderRadius: 8, padding: 16, marginBottom: 16, shadowColor: '#000', shadowOffset: { width: 0, height: 2, }, shadowOpacity: 0.25, shadowRadius: 3.84, elevation: 5, }, title: { fontSize: 18, fontWeight: 'bold', marginBottom: 8, }, });