import React, { FC } from 'react' import { useProduct } from 'vtex.product-context' import styles from "./styles.css"; export const DescontPix: FC = () => { const productContextValue = useProduct(); let sellingPrice = Number(productContextValue?.product?.priceRange.sellingPrice.lowPrice); sellingPrice = (sellingPrice - (sellingPrice/10)); return (
R$ {sellingPrice.toFixed(2).replace(".", ",")}
10 % de desconto