import React from "react"; import { StyleSheet, Text, TouchableOpacity, View } from "react-native"; import { Ionicons } from "@expo/vector-icons"; // TableCell bileşeni tanımı const TableCell = ({ text }) => { return ( {text} ); }; // ProductCard bileşeni tanımı const ProductCard = ({ name, price, image, sku, quantity, onPress, onPressSecondary, cardSize, }) => { return ( {/* Ürün Kodu */} {/* Ürün Adı */} {/* Ürün Fiyatı */} {quantity > 0 ? ( ) : ( )} ); } // Stil tanımları const styles = StyleSheet.create({ container: { backgroundColor: "white", width: 330, borderRadius: 10, display: "flex", flexDirection: "row", justifyContent: "space-between", alignItems: "center", padding: 10, elevation: 5, marginBottom: 10, }, tableCell: { flex: 1, paddingHorizontal: 5, }, secondaryTextSm: { fontSize: 16, fontWeight: "bold", }, iconContainer: { backgroundColor: "transparent", width: 40, height: 40, display: "flex", justifyContent: "center", alignItems: "center", }, icon: { backgroundColor: "#f2bc00", width: 30, height: 30, borderRadius: 5, display: "flex", justifyContent: "center", alignItems: "center", }, iconDisabled: { backgroundColor: "lightgray", width: 30, height: 30, borderRadius: 5, display: "flex", justifyContent: "center", alignItems: "center", }, }); export default ProductCard;