import React from 'react';
import { View, Text, Image, TextInput } from 'react-native';

import styles from './index.style'

type Props = {
    drg_drug_cd: string, drg_drug_name: string, price: number, quantity: number
}
const ItemCartProduct = (props: Props) => {

    return (

        <View>
            <Text>
                {`${props.drg_drug_cd} - ${props.drg_drug_name}`}
            </Text>
            <Text>
                {`Giá: ${props.price} - Số lượng: ${props.quantity} - Tổng: ${props.price*props.quantity}VNĐ`}
            </Text>
        </View>
    );
};


export default ItemCartProduct;
