import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; import { ShoppingCart } from "lucide-react"; import { DEVICE_COST, ORIGINAL_COST, paymentLink } from "@/lib/data"; import { useToast } from "@/components/ui/use-toast"; import Link from "next/link"; interface CheckoutProps { deviceCost: number; originalCost: number; paymentLink: string; } const Checkout = ({ deviceCost, originalCost, paymentLink }: CheckoutProps) => { const totalSavings = originalCost - deviceCost; const freeShipping = deviceCost >= 100; return (
${deviceCost}
${originalCost}
Save ${totalSavings.toFixed(0)}
{freeShipping && (

FREE Shipping

)}
); }; export default Checkout;