瀏覽代碼

refactor: typescript

master
ntasicc 3 年之前
父節點
當前提交
13a4f607a5
共有 1 個文件被更改,包括 17 次插入0 次删除
  1. 17
    0
      pages/contact/index.tsx

+ 17
- 0
pages/contact/index.tsx 查看文件

@@ -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…
取消
儲存