import { generateRegistryMetadata, generateRegistryStructuredData } from "@/lib/seo"
import { TermsAndConditionsPage } from "@/components/terms-and-conditions-page"
import type { Metadata } from "next"

export async function generateMetadata(): Promise<Metadata> {
  return generateRegistryMetadata("terms", {
    robots: {
      index: false,
      follow: false,
    },
  })
}

export default function TermsAndConditions() {
  const structuredData = generateRegistryStructuredData("terms")

  return (
    <>
      <script
        type="application/ld+json"
        dangerouslySetInnerHTML={{ __html: JSON.stringify(structuredData) }}
      />
      <TermsAndConditionsPage />
    </>
  )
}
