"use client"; import { NumberFormat } from "@/config/func"; import { Button } from "@/components/ui/button"; import Link from "next/link"; import { FC } from "react"; type CartSummaryProps = { itemsCount: number; itemsPrice: number; discount: number; shippingCost?: number; total: number; onConfirm?: () => void; confirmHref?: string; confirmLabel?: string; confirmDisabled?: boolean; onDownloadInvoice?: () => void; className?: string; isLoading?: boolean; }; const Row: FC<{ label: string; value: string | number; emphasize?: boolean }> = ( { label, value, emphasize } ) => { return (