import React from "react"; import { useProduct } from "vtex.product-context"; const Pix = () => { const productContextValue = useProduct()?.product?.priceRange?.sellingPrice ?.highPrice; return ( <>
Pix
{`R$ ${(productContextValue! - productContextValue! * 0.1) .toFixed(2) .replace(".", ",")}`}
10% de desconto
); }; export default Pix;