2023-02-02 14:00:37 +00:00
|
|
|
import React from 'react';
|
|
|
|
import {useProduct} from 'vtex.product-context';
|
2023-02-09 19:25:08 +00:00
|
|
|
import styles from "./styles.css";
|
2023-02-02 14:00:37 +00:00
|
|
|
|
|
|
|
|
2023-02-07 15:32:47 +00:00
|
|
|
const paymentWithPix =() => {
|
2023-02-02 14:00:37 +00:00
|
|
|
|
|
|
|
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 (
|
2023-02-07 15:32:47 +00:00
|
|
|
<div className={styles.wrapperPix}>
|
|
|
|
<img className={styles.wrapperPixImage}src={imagePix} alt="Imagem do icone do pix" />
|
|
|
|
<div className={styles.wrapperPrices}>
|
2023-02-09 19:25:08 +00:00
|
|
|
<p className={styles.wrapperTitle}>{(product?.product?.priceRange.sellingPrice.highPrice || 0) * (0.9)}</p>
|
|
|
|
<p className={styles.wrapperSubtitle}>R$ 10 % de desconto</p>
|
2023-02-07 15:32:47 +00:00
|
|
|
</div>
|
2023-02-02 14:00:37 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default paymentWithPix
|