import React from 'react'; import { ArrowDownCircle, ArrowDownIcon, ArrowUp, ArrowUpCircle } from 'lucide-react'; import { formatPriceWithToman } from '@/lib/utils/priceUtils'; interface TransactionItemProps { amount: number; description: string; type: 'deposit' | 'withdraw'; isLast?: boolean; } const TransactionItem = ({ amount, description, type, isLast = false, }: TransactionItemProps) => { const isDeposit = type === 'deposit'; const Icon = isDeposit ? ArrowDownIcon : ArrowUp; const amountColor = isDeposit ? 'text-[#2E7D32]' : 'text-[#D32F2F]'; const bgColor = isDeposit ? 'bg-[#2E7D3210]' : 'bg-[#D32F2F10]'; const iconColor = isDeposit ? 'text-[#2E7D32]' : 'text-[#D32F2F]'; return (
{description}
{isDeposit ? '+' : '-'} {formatPriceWithToman(amount)} ۱۴۰۳/۰۸/۲۴
); }; export default TransactionItem;