-
Notifications
You must be signed in to change notification settings - Fork 0
/
contacts.js
35 lines (31 loc) · 868 Bytes
/
contacts.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import React from "react";
import { serverSideTranslations } from "next-i18next/serverSideTranslations";
import { useTranslation, Trans } from "next-i18next";
import dynamic from "next/dynamic";
const OSMapNoSSR = dynamic(() => import("../components/ui/OpenStreetMapArea"), {
ssr: false,
});
import ContactForm from "../components/ui/ContactForm";
const contacts = () => {
const { t } = useTranslation("common");
return (
<>
<div id="map-section">
<div className="map-area section-padding">
<OSMapNoSSR />
</div>
<div className="contact-area section-padding pt-0">
<ContactForm />
</div>
</div>
</>
);
};
export default contacts;
export async function getServerSideProps({ locale }) {
return {
props: {
...(await serverSideTranslations(locale, ["common"])),
},
};
}