"use client" import { Calendar, CreditCard, DollarSign, Users } from "lucide-react" import { Badge } from "@/components/ui/badge" import { Button } from "@/components/ui/button" import { Card, CardContent, CardFooter, CardHeader, CardTitle, } from "@/components/ui/card" export interface SoftwarePurchaseCardProps { softwareName?: string startDate?: string seats?: number pricingType?: "per-seat" | "flat-rate" | "usage-based" price?: string onApprove?: () => void onDiscard?: () => void } export function SoftwarePurchaseCard({ softwareName = "Enterprise Cloud Suite", startDate = "2025-01-15", seats = 50, pricingType = "per-seat", price = "$2,500", onApprove, onDiscard, }: SoftwarePurchaseCardProps) { const pricingTypeLabel = { "per-seat": "Per Seat", "flat-rate": "Flat Rate", "usage-based": "Usage Based", }[pricingType] return ( {softwareName} {pricingTypeLabel}
Start Date {new Date(startDate).toLocaleDateString("en-US", { month: "long", day: "numeric", year: "numeric", })}
Seats {seats} users
Pricing Type {pricingTypeLabel}
{pricingType === "per-seat" ? "Monthly Cost" : "Price"} {price}
) }