import { generateSEOMetadata, generateStructuredData } from '@/lib/seo';
import { ReviewsPage } from '@/components/reviews-page';
import type { Metadata } from 'next';

export async function generateMetadata(): Promise<Metadata> {
  return generateSEOMetadata({
    title: 'Customer Reviews | Rocky Mountain Vending',
    description: 'Read authentic customer reviews and testimonials about Rocky Mountain Vending\'s exceptional vending services in Utah. See why businesses trust us for free vending machines.',
  });
}

export default function Reviews() {
  const structuredData = generateStructuredData({
    title: 'Customer Reviews',
    description: 'See what our customers are saying about Rocky Mountain Vending\'s exceptional service',
    url: 'https://rockymountainvending.com/reviews/',
    type: 'WebPage',
  });

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