2023-02-02 14:00:37 +00:00
|
|
|
|
|
|
|
import React from 'react';
|
|
|
|
import {useProduct} from 'vtex.product-context';
|
|
|
|
|
|
|
|
const paymentWithPix= (props:any) => {
|
|
|
|
console.log("props",props);
|
|
|
|
|
|
|
|
|
|
|
|
const product = useProduct();
|
2023-02-03 19:03:10 +00:00
|
|
|
let imagePix = "https://agenciamagma.vtexassets.com/arquivos/pix-image-victor_souza.svg"
|
2023-02-02 14:00:37 +00:00
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
<div>
|
2023-02-03 19:03:10 +00:00
|
|
|
<img src={imagePix} alt="Imagem do icone do pix" />
|
2023-02-02 14:00:37 +00:00
|
|
|
<p>{(product?.product?.priceRange.sellingPrice.highPrice || 0) * 0.9}</p>
|
|
|
|
<p>10 % de desconto</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default paymentWithPix
|