import { generateSEOMetadata, generateStructuredData } from '@/lib/seo';
import { TermsAndConditionsPage } from '@/components/terms-and-conditions-page';
import type { Metadata } from 'next';

export async function generateMetadata(): Promise<Metadata> {
  return generateSEOMetadata({
    title: 'Terms & Conditions | Rocky Mountain Vending',
    description: 'Terms and Conditions for Rocky Mountain Vending',
    robots: {
      index: false,
      follow: false,
    },
  });
}

export default function TermsAndConditions() {
  const structuredData = generateStructuredData({
    title: 'Terms & Conditions',
    description: 'Terms and Conditions for Rocky Mountain Vending',
    url: 'https://rockymountainvending.com/terms-and-conditions/',
    type: 'WebPage',
  });

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








