24 lines
384 B
TypeScript
24 lines
384 B
TypeScript
|
|
||
|
import React from 'react';
|
||
|
import {useProduct} from 'vtex.product-context';
|
||
|
|
||
|
const paymentWithPix= (props:any) => {
|
||
|
console.log("props",props);
|
||
|
|
||
|
|
||
|
const product = useProduct();
|
||
|
|
||
|
|
||
|
|
||
|
return (
|
||
|
<div>
|
||
|
{/* <img src= alt="" /> */}
|
||
|
<p>{(product?.product?.priceRange.sellingPrice.highPrice || 0) * 0.9}</p>
|
||
|
<p>10 % de desconto</p>
|
||
|
</div>
|
||
|
|
||
|
)
|
||
|
}
|
||
|
|
||
|
export default paymentWithPix
|