// src/pages/SubscriptionHistory.jsx import React from 'react'; import { ArrowBackIosNew, CalendarToday, AccessTime, CreditCard, Person, Visibility } from '@mui/icons-material'; import { useNavigate } from 'react-router-dom'; import { motion } from 'framer-motion'; import { CrownIcon } from 'lucide-react'; const subscriptions = [ { id: "SUB722HSN", plan: "Gold Plan", profileCount: 150, usedCount: 70, billingCycle: "Monthly", expireDate: "19/11/2025", startDate: "19/10/2025", startTime: "10:00 AM", paymentMethod: "UPI Mode", amount: 1800, isActive: true }, { id: "SUB722HSN", plan: "Gold Plan", profileCount: 150, usedCount: 70, billingCycle: "Monthly", expireDate: "19/11/2025", startDate: "19/10/2025", startTime: "10:00 AM", paymentMethod: "UPI Mode", amount: 1800, isActive: false }, { id: "SUB722HSN", plan: "Gold Plan", profileCount: 150, usedCount: 70, billingCycle: "Monthly", expireDate: "19/11/2025", startDate: "19/10/2025", startTime: "10:00 AM", paymentMethod: "UPI Mode", amount: 1800, isActive: false } ]; export default function SubscriptionHistory() { const navigate = useNavigate(); return (
{/* Royal Header */}

Subscription History

{/* Current Plan Title */}
Current Plan
{/* Subscription Cards */}
{subscriptions.map((sub, index) => ( {/* Crown Badge */}
{sub.plan} {sub.isActive && ACTIVE}
{/* Subscription ID */}

Subscription ID

{sub.id}

{/* Stats Row */}

{sub.profileCount}

Profile Count

{sub.usedCount}

Used Count

{/* Details Grid */}
Billing Cycle {sub.billingCycle}
Expire Date {sub.expireDate}
Start Date & Time {sub.startDate} | {sub.startTime}
Payment Method {sub.paymentMethod}
{/* Total Amount */}

Total Plan Amount

₹{sub.amount.toLocaleString()}

))}
{/* Final Message */} {/*

Your journey to forever is fully powered

Enjoy unlimited matches with your Gold Plan

*/}
); }