import type { Metadata } from "next";
import RegisterPartnerClient from "./RegisterPartnerClient";
import Script from "next/script";

export const metadata: Metadata = {
  title: "Become a Ridoo Partner - Earn with Your Bikes & Cars",
  description:
    "Join Ridoo as a partner and grow your bike or car rental business. Get verified customers, zero commission offers, and powerful tools to manage your fleet.",

  keywords: [
    "ridoo partner",
    "bike rental business india",
    "car rental partner",
    "earn with vehicles",
    "vehicle rental business india",
  ],

  alternates: {
    canonical: "/register-partner",
  },

  openGraph: {
    title: "Become a Ridoo Partner",
    description:
      "Start earning by listing your bikes or cars on Ridoo. Join now and grow your rental business.",
    url: "/register-partner",
    siteName: "Ridoo",
    type: "website",
    images: [
      {
        url: "/og-image.png",
        width: 1200,
        height: 630,
      },
    ],
  },

  robots: {
    index: true, // ✅ THIS PAGE SHOULD RANK
    follow: true,
  },
};

export default function Page() {
  return (
    <>
      {/* 🔥 SCHEMA (IMPORTANT) */}
      <Script
        id="partner-register-schema"
        type="application/ld+json"
        dangerouslySetInnerHTML={{
          __html: JSON.stringify({
            "@context": "https://schema.org",
            "@type": "Service",
            name: "Ridoo Partner Registration",
            description:
              "Register as a partner on Ridoo and earn by renting your bikes or cars.",
            provider: {
              "@type": "Organization",
              name: "Ridoo",
            },
          }),
        }}
      />

      <RegisterPartnerClient />
    </>
  );
}