// ** React Imports import { ReactNode } from 'react' // ** MUI Imports import Box from '@mui/material/Box' import Card from '@mui/material/Card' import Typography from '@mui/material/Typography' import CardHeader from '@mui/material/CardHeader' import CardContent from '@mui/material/CardContent' // ** Icon Imports import Icon from 'src/@core/components/icon' // ** Types import { ThemeColor } from 'src/@core/layouts/types' // ** Custom Components Imports import CustomAvatar from 'src/@core/components/mui/avatar' import OptionsMenu from 'src/@core/components/option-menu' import Image from 'next/image' interface DataType { title: string imgAlt: string imgSrc: string amount: string trend: ReactNode subtitle: string imgWidth: number imgHeight: number avatarColor: ThemeColor } const data: DataType[] = [ { imgHeight: 18, imgWidth: 22.5, amount: '-$850', title: 'Credit Card', imgAlt: 'credit-card', avatarColor: 'success', subtitle: 'Digital Ocean', imgSrc: '/images/cards/credit-card.png', trend: ( ) }, { imgWidth: 17, title: 'Paypal', imgHeight: 18.4, imgAlt: 'paypal', amount: '+$34,456', avatarColor: 'primary', subtitle: 'Received Money', imgSrc: '/images/cards/paypal.png', trend: ( ) }, { imgHeight: 18, imgWidth: 22.5, amount: '-$199', title: 'Mastercard', subtitle: 'Netflix', avatarColor: 'info', imgAlt: 'mastercard', imgSrc: '/images/cards/mastercard.png', trend: ( ) }, { imgWidth: 20, imgHeight: 18, title: 'Wallet', amount: '-$156', imgAlt: 'wallet', subtitle: "Mac'D", avatarColor: 'error', imgSrc: '/images/cards/wallet.png', trend: ( ) }, { imgWidth: 17, title: 'Paypal', imgHeight: 18.4, imgAlt: 'paypal', amount: '+$12,872', subtitle: 'Refund', avatarColor: 'primary', imgSrc: '/images/cards/paypal.png', trend: ( ) }, { imgHeight: 18, imgWidth: 22.8, title: 'Stripe', amount: '-$299', imgAlt: 'stripe', avatarColor: 'warning', subtitle: 'Buy Apple Watch', imgSrc: '/images/cards/stripe.png', trend: ( ) } ] const CardTransactions = () => { return ( } /> {data.map((item: DataType, index: number) => { return ( {item.imgAlt} {item.title} {item.subtitle} {item.amount} {item.trend} ) })} ) } export default CardTransactions