// Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 import { NextPage } from 'next'; import Footer from '../components/Footer'; import Layout from '../components/Layout'; import ProductList from '../components/ProductList'; import * as S from '../styles/Home.styled'; import { useQuery } from 'react-query'; import ApiGateway from '../gateways/Api.gateway'; import Banner from '../components/Banner'; import { CypressFields } from '../utils/Cypress'; import { useCurrency } from '../providers/Currency.provider'; const Home: NextPage = () => { const { selectedCurrency } = useCurrency(); const { data: productList = [] } = useQuery(['products', selectedCurrency], () => ApiGateway.listProducts(selectedCurrency) ); return ( Hot Products