"use client";

import React, { useEffect } from "react";
import Header1 from "@/components/layout/Header1";
import Footer1 from "@/components/layout/Footer1";
import InnerBanner from "@/components/common/InnerBanner";
import ContactSection from "@/components/contact/ContactSection";
import MapSection from "@/components/contact/MapSection";

export default function ContactPage() {
    useEffect(() => {
        const init = () => {
            if (typeof window !== "undefined" && (window as any).initMetatron && (window as any).jQuery) {
                (window as any).initMetatron();
            } else {
                setTimeout(init, 100);
            }
        };
        init();
    }, []);

    return (
        <>
            <Header1 />
            <main>
                <InnerBanner title="Contact Us" />
                <ContactSection />
                <MapSection />
            </main>
            <Footer1 />
        </>
    );
}
