You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920212223242526272829303132
  1. import { Box } from '@mui/system';
  2. import Head from 'next/head';
  3. import ProductsHero from '../../components/products-hero/ProductsHero';
  4. const Products = () => {
  5. return (
  6. <>
  7. <Box sx={{ width: '100%', height: '100%' }}>
  8. <Head>
  9. <title>NextJS template</title>
  10. <meta name="description" content="Random data with pagination..." />
  11. </Head>
  12. <ProductsHero />
  13. </Box>
  14. </>
  15. );
  16. };
  17. // export async function getStaticProps({ locale }) {
  18. // const queryClient = new QueryClient();
  19. // await queryClient.prefetchQuery(['randomData', 1], () => getData(1));
  20. // return {
  21. // props: {
  22. // dehydratedState: dehydrate(queryClient),
  23. // ...(await serverSideTranslations(locale, ['pagination'])),
  24. // },
  25. // };
  26. // }
  27. export default Products;