import React from "react"; import { useProduct } from "vtex.product-context"; import styles from "./Pix.module.css"; const Pix = () => { const price = useProduct()?.product?.priceRange?.sellingPrice?.highPrice; const discount = (Number(price) * 10) / 100; const priceWithDiscount = Number(price) - Number(discount); return (
Imagem do pix

R$ {priceWithDiscount.toFixed(2)}

10 % de desconto

); }; export default Pix;