2023-03-18 11:33:36 +00:00
|
|
|
|
|
|
|
|
import React from 'react'
|
|
|
|
|
import styles from './upcoming.module.css'
|
|
|
|
|
import { BsTriangleFill } from 'react-icons/bs'
|
|
|
|
|
import RecurringPayment from './RecurringPayment'
|
|
|
|
|
|
|
|
|
|
export default function Upcoming() {
|
2023-03-18 14:50:45 +00:00
|
|
|
const recurringPayments = [
|
|
|
|
|
{
|
|
|
|
|
title: "2568 Rent",
|
|
|
|
|
amount: "36,163",
|
|
|
|
|
due_in_days: "7",
|
2023-03-18 17:29:04 +00:00
|
|
|
icon_type: "rent",
|
2023-03-18 14:50:45 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "YouTube Premium",
|
|
|
|
|
amount: "130",
|
|
|
|
|
due_in_days: "17",
|
2023-03-18 17:29:04 +00:00
|
|
|
icon_type: "youtube",
|
2023-03-18 14:50:45 +00:00
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
const recurringPaymentsDiv = []
|
|
|
|
|
recurringPayments.forEach((payment) => {
|
|
|
|
|
recurringPaymentsDiv.push(
|
|
|
|
|
<RecurringPayment
|
|
|
|
|
key={payment.title}
|
|
|
|
|
title={payment.title}
|
|
|
|
|
amount={payment.amount}
|
|
|
|
|
due_in_days={payment.due_in_days}
|
2023-03-18 17:29:04 +00:00
|
|
|
icon_type={payment.icon_type}
|
2023-03-18 14:50:45 +00:00
|
|
|
/>
|
|
|
|
|
)
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
2023-03-18 11:33:36 +00:00
|
|
|
return (
|
|
|
|
|
<div className={styles.main}>
|
|
|
|
|
<div className={styles.summary}>
|
|
|
|
|
<div className={styles.left}>
|
|
|
|
|
<BsTriangleFill
|
|
|
|
|
size={10}
|
|
|
|
|
className={styles.arrow}
|
|
|
|
|
/>
|
|
|
|
|
<div className={styles.text}>Upcoming</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div className={styles.right}>₹36,163</div>
|
|
|
|
|
</div>
|
2023-03-18 14:50:45 +00:00
|
|
|
{recurringPaymentsDiv}
|
2023-03-18 11:33:36 +00:00
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
}
|