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.

index.tsx 481B

1234567891011121314151617
  1. import { NextPage } from 'next';
  2. import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
  3. import ProductsContent from '../../components/products-content/ProductsContent';
  4. const Products: NextPage = () => {
  5. return <ProductsContent></ProductsContent>;
  6. };
  7. export async function getStaticProps({ locale }: any) {
  8. return {
  9. props: {
  10. ...(await serverSideTranslations(locale, ['products'])),
  11. },
  12. };
  13. }
  14. export default Products;