Browse Source

refactor: typescript

master
ntasicc 3 years ago
parent
commit
13a4f607a5
1 changed files with 17 additions and 0 deletions
  1. 17
    0
      pages/contact/index.tsx

+ 17
- 0
pages/contact/index.tsx View File

@@ -0,0 +1,17 @@
import { GetStaticProps, NextPage } from 'next';
import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
import ContactForm from '../../components/forms/contact/ContactForm';

const ContactPage: NextPage = () => {
return <ContactForm />;
};

export const getStaticProps: GetStaticProps = async ({ locale }: any) => {
return {
props: {
...(await serverSideTranslations(locale, ['forms', 'contact', 'common'])),
},
};
};

export default ContactPage;

Loading…
Cancel
Save