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:
      "Browse Rocky Mountain Vending reviews and the live Google review feed to see what Utah businesses say about placement, restocking, repairs, and service.",
    path: "/reviews",
  })
}

export default function Reviews() {
  const structuredData = generateStructuredData({
    title: "Customer Reviews",
    description:
      "Browse Rocky Mountain Vending reviews and the live Google review feed",
    url: "https://rockymountainvending.com/reviews/",
    type: "WebPage",
  })

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