import { generateRegistryMetadata, generateRegistryStructuredData } from "@/lib/seo"
import { VendingMachinesPage } from "@/components/vending-machines-page"
import type { Metadata } from "next"

export async function generateMetadata(): Promise<Metadata> {
  return generateRegistryMetadata("vendingMachines", {
    description:
      "Compare snack, beverage, and combo vending machines for Utah businesses, including payment options, layouts, and placement or purchase paths.",
  })
}

export default function VendingMachines() {
  const structuredData = generateRegistryStructuredData("vendingMachines", {
    description:
      "Compare snack, beverage, and combo vending machines for Utah businesses, including payment options, layouts, and placement or purchase paths.",
  })

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