import { DollarSign } from "lucide-react"; import { useLocalization } from "@/lib/hooks"; import { Card, CardContent, CardDescription, CardHeader, CardTitle, Separator } from "@/ui"; import { useFormContext } from "react-hook-form"; export const QuotePricesResume = () => { const { watch } = useFormContext(); const { formatNumber, formatCurrency, formatPercentage } = useLocalization(); const subtotal_price = formatNumber(watch("subtotal_price")); const discount = formatPercentage(watch("discount")); const total_price = formatNumber(watch("total_price")); return (
Importe neto {subtotal_price}
Descuento {discount} %
Imp. descuento {subtotal_price}
IVA {discount} %
Importe IVA {subtotal_price}
{" "}
Importe total {total_price}
); return (
Descuento 62 %
Importe dto. 3.346
Importe neto
{subtotal_price.amount} {subtotal_price.currency_code}
Descuento
73 %
Descuento
73
Base imponible
14
IVA
14
Importe total
14
); return ( Total Revenue
$45,231.89

+20.1% from last month

); };