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 { getValues } = useFormContext(); const { formatNumber, formatCurrency, formatPercentage } = useLocalization(); console.log(getValues()); const subtotal_price = formatNumber(getValues("subtotal_price")); const discount = formatPercentage(getValues("discount")); const total_price = formatCurrency(getValues("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 ); };
+20.1% from last month