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

export async function generateMetadata(): Promise<Metadata> {
  return generateSEOMetadata({
    title: "Vending Machines | Rocky Mountain Vending",
    description:
      "Compare snack, beverage, and combo vending machines for Utah businesses, including payment options, layouts, and placement or purchase paths.",
    path: "/vending-machines",
  })
}

export default function VendingMachines() {
  const structuredData = generateStructuredData({
    title: "Vending Machines",
    description:
      "Compare snack, beverage, and combo vending machines for Utah businesses",
    url: "https://rockymountainvending.com/vending-machines/",
    type: "WebPage",
  })

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