import type { Metadata } from "next";
import OffersClient from "./OffersClient";
import Script from "next/script";

export const metadata: Metadata = {
  title: "Ridoo Offers - Best Bike & Car Rental Deals",
  description:
    "Explore the latest offers on bike and car rentals. Get discounts, cashback, and exclusive coupon codes on your next ride with Ridoo.",

  keywords: [
    "bike rental offers",
    "car rental discounts",
    "ridoo coupons",
    "cheap bike rent india",
    "car rental deals india",
  ],

  alternates: {
    canonical: "/offers",
  },

  openGraph: {
    title: "Best Rental Offers | Ridoo",
    description:
      "Find the best bike and car rental deals with exclusive discounts and coupon codes.",
    url: "/offers",
    siteName: "Ridoo",
    type: "website",
    images: [
      {
        url: "/og-image.png",
        width: 1200,
        height: 630,
      },
    ],
  },

  robots: {
    index: true,
    follow: true,
  },
};

export default function Page() {
  return (
  <>
  <Script
    id="offers-schema"
    type="application/ld+json"
    dangerouslySetInnerHTML={{
      __html: JSON.stringify({
        "@context": "https://schema.org",
        "@type": "OfferCatalog",
        name: "Ridoo Rental Offers",
        description: "Latest bike and car rental offers and discounts",
      }),
    }}
  />
  <OffersClient />
</>
  )
}