"use client"; import Image from "next/image"; import { Modal, ModalContent, Button } from "@heroui/react"; import { buttonStyles } from "@/lib/buttonStyles"; interface ReviewModalProps { isOpen: boolean; onClose: () => void; amount: string; productName?: string; } export default function ReviewModal({ isOpen, onClose, amount, productName = "High-Yield US Equity", }: ReviewModalProps) { const gyusAmount = amount ? (parseFloat(amount) * 0.9852).toFixed(0) : "0"; const usdValue = amount ? (parseFloat(amount) * 1.00045).toFixed(2) : "0.00"; return (
{/* Header */}
Review
{/* Product Info */}
Product
{productName}
{/* Amount Section */}
Deposit
{amount || "0"} USDC
≈ ${usdValue}
{/* Transaction Details */}
{/* Deposit Row */}
Deposit (USDC)
{amount ? parseFloat(amount).toLocaleString() : "0"}
0
{/* Get GYUS Row */}
GET(GYUS)
0.00
{gyusAmount}
{/* APY Info */}
APY
22.0%
{/* Confirm Button */}
); }