// @ts-ignore
import React from 'react';
import {View, Image, Text, StyleSheet} from 'react-native';

const AlbumCard = ({ album }) => {
    console.log(album);
    return (
        <View style={styles.container}>
            <Image source={{ uri: album.coverUrl }} style={styles.image}/>
            <Text style={styles.name}>{album.name}</Text>
        </View>
    );
};

const styles = StyleSheet.create({
    container: {
        flexDirection: 'row',
        alignItems: 'center',
        margin: 10,
    },
    image: {
        width: 50,
        height: 50,
        marginRight: 10,
    },
    name: {
        fontSize: 20,
        fontWeight: 'bold',
    },
});

export default AlbumCard;
