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: 'Browse our selection of high-quality vending machines with advanced features and cashless payment options',
  });
}

export default function VendingMachines() {
  const structuredData = generateStructuredData({
    title: 'Vending Machines',
    description: 'Browse our selection of high-quality vending machines with advanced features and cashless payment options',
    url: 'https://rockymountainvending.com/vending-machines/',
    type: 'WebPage',
  });

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