import React from "react"; import { useProduct } from "vtex.product-context"; import styles from "./styles.css"; const PaymentPix = () => { const product = useProduct(); const pricePix = ( (product?.product?.priceRange.sellingPrice.highPrice || 0.0) * 0.9 ).toFixed(2); const imagePix = "https://agenciamagma.vtexassets.com/arquivos/imgPix-savio-carvalho.png"; const convertPrice = pricePix.toString().replace(".", ","); return (
R$ {convertPrice}
10% de desconto