import React, { useEffect } from "react"; import { useProduct} from "vtex.product-context"; import styles from "./styles.module.css"; const Pix = () => { useEffect(()=>{ const cep = document.querySelector(".vtex-address-form-4-x-input"); cep?.setAttribute("placeholder", "Digite seu CEP"); }) const productvalue = useProduct(); const pixproduct = productvalue?.product?.priceRange?.sellingPrice?.lowPrice; const desconto = (Number(pixproduct)*10)/100; const total = Number(pixproduct) - Number(desconto.toFixed(2)) return (

R$ { total.toFixed(2)}

10% de desconto

); }; export default Pix;