import { Link } from 'expo-router';
import { StyleSheet, Text, View , Pressable} from 'react-native';

export default function ExerciseListItem({item}){
  return (
    <Link href={`/${item.name}`} asChild>
      <Pressable style={styles.eCont}>
        <Text style={{fontSize:20, fontWeight: 700}}>{item.name}</Text>
        <Text style={styles.description}>{item.muscle} | {item.equipment} </Text>
      </Pressable>
    </Link>

  );
}

const styles = StyleSheet.create({
    eCont: {
      backgroundColor: 'aliceblue',
      padding: 10,
      borderRadius: 10,
    },
    description:{
      color: 'dimgrey'
   },
  });
  