import type { Metadata } from "next";
import PartnerClient from "./PartnerClient";
import Script from "next/script";

export const metadata: Metadata = {
  title: "Ridoo Partner - Grow Your Vehicle Rental Business",
  description:
    "Join Ridoo as a partner and grow your bike or car rental business. Get verified customers, 0% commission for the first month, and powerful management tools.",

  keywords: [
    "become rental partner",
    "bike rental business india",
    "car rental partner india",
    "earn with vehicles",
    "vehicle rental business",
  ],

  alternates: {
    canonical: "/partner",
  },

  openGraph: {
    title: "Partner with Ridoo",
    description:
      "List your bikes or cars on Ridoo and grow your rental business with verified customers and smart tools.",
    url: "/partner",
    siteName: "Ridoo",
    type: "website",
    images: [
      {
        url: "/og-image.png",
        width: 1200,
        height: 630,
      },
    ],
  },

  robots: {
    index: true,
    follow: true,
  },
};

export default function Page() {
  return (
    <>
      {/* 🔥 STRUCTURED DATA (VERY IMPORTANT) */}
      <Script
        id="partner-schema"
        type="application/ld+json"
        dangerouslySetInnerHTML={{
          __html: JSON.stringify({
            "@context": "https://schema.org",
            "@type": "Organization",
            name: "Ridoo Partner Program",
            description:
              "Join Ridoo to grow your vehicle rental business and earn more.",
            url: "https://ridoo.co.in/partner",
          }),
        }}
      />

      <PartnerClient />
    </>
  );
}