2025-08-18 23:34:19 +05:30

34 lines
1.2 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';
import { useTranslation } from 'next-i18next';
const ContactPage =() => {
const { t } = useTranslation('innerBanner');
return(
<Fragment>
<Navbar2/>
<PageTitle pageTitle={t('contact.pageTitle')} backgroundImage={contact} pagesub={t('contact.pageSub')}/>
<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','innerBanner', 'contact', 'footer'])), // Add 'home', 'footer', etc. if needed
},
};
}