import React from 'react'; import { CartItem as CartItemType } from '../../types'; import { Card } from '../ui/card'; import { Button } from '../ui/button'; import { Trash2, Tag } from 'lucide-react'; interface CartItemProps { item: CartItemType; onRemove: (id: string) => void; } export const CartItem: React.FC = ({ item, onRemove }) => { const price = item.selectedLicense ? item.selectedLicense.price : item.price; const licenseName = item.selectedLicense ? item.selectedLicense.name : 'Standard'; return ( {/* Thumbnail */}
{item.title}
{/* Info */}

{item.title}

{item.author}

{licenseName} License {item.type}
{/* Price & Actions */}
${price.toFixed(2)}
); };