32 lines
1.1 KiB
JavaScript
32 lines
1.1 KiB
JavaScript
import React, {Fragment} from 'react';
|
|
import Navbar2 from '../../components/Navbar2/Navbar2';
|
|
import PageTitle from '../../components/pagetitle/PageTitle'
|
|
import Contactpage from '../../components/Contactpage/Contactpage'
|
|
import Scrollbar from '../../components/scrollbar/scrollbar'
|
|
import Footer from '../../components/footer/Footer';
|
|
import contact from '/public/images/contact/contact-banner.webp';
|
|
import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
|
|
|
|
const ContactPage =() => {
|
|
return(
|
|
<Fragment>
|
|
<Navbar2/>
|
|
<PageTitle pageTitle={'Contact Us'} backgroundImage={contact} pagesub={'Contact'}/>
|
|
<Contactpage/>
|
|
<Footer/>
|
|
<Scrollbar/>
|
|
</Fragment>
|
|
)
|
|
};
|
|
export default ContactPage;
|
|
|
|
// ✅ This enables translations (menu, and more if you add other namespaces)
|
|
export async function getStaticProps({ locale }) {
|
|
return {
|
|
props: {
|
|
...(await serverSideTranslations(locale, ['common', 'menu', 'contact', 'footer'])), // Add 'home', 'footer', etc. if needed
|
|
},
|
|
};
|
|
}
|
|
|