Next.js template
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.js 406B

12345678910111213141516
  1. import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
  2. import ContactForm from '../../components/forms/contact/ContactForm';
  3. const ContactPage = () => {
  4. return <ContactForm />;
  5. };
  6. export async function getStaticProps({ locale }) {
  7. return {
  8. props: {
  9. ...(await serverSideTranslations(locale, ['forms', 'contact', 'common'])),
  10. },
  11. };
  12. }
  13. export default ContactPage;