import ContactForm from "@components/contact/ContactForm";
import ContactHeader from "@components/contact/ContactHeader";
import GoogleCaptchaWrapper from "@app/GoogleCaptchaWrapper";
import { ContactPageContent } from "@lib/data";
import type { Metadata } from "next";

export async function generateMetadata(): Promise<Metadata> {
  return {
    title: "Momentus Contact",
    description: "Momentus Contact",
    keywords: "Momentus Contact",
  };
}

const Contact = async () => {
  const contactContent = await ContactPageContent();
  const title = contactContent.data.title;
  const description = contactContent.data.description;
  return (
    <>
      <ContactHeader title={title} description={description} />
      <GoogleCaptchaWrapper>
        <ContactForm />
      </GoogleCaptchaWrapper>
    </>
  );
};

export default Contact;
