import type { Metadata } from "next";
import ContactPageContent from "@/components/ContactPageContent/ContactPageContent";
import { DEFAULT_OG_IMAGE, SITE_NAME, CONTACT_PATH } from "@/utils/constants";

const title = `Contact Us | ${SITE_NAME}`;
const description =
  "Get in touch with Teapot at Bowdens Farm in Hambridge, Somerset. We work with clients across Taunton, the South West and nationwide.";

export const metadata: Metadata = {
  metadataBase: new URL(process.env.SITE_URL),
  title,
  description,
  alternates: {
    canonical: CONTACT_PATH,
  },
  openGraph: {
    title,
    description,
    url: `${process.env.SITE_URL}contact`,
    siteName: SITE_NAME,
    images: [
      {
        url: DEFAULT_OG_IMAGE,
        width: 1200,
        height: 630,
      },
    ],
    locale: "en_GB",
    type: "website",
  },
  twitter: {
    card: "summary_large_image",
    title,
    description,
    images: [DEFAULT_OG_IMAGE],
  },
};

const ContactPage = () => {
  return <ContactPageContent />;
};

export default ContactPage;
