"use client";

import { CmsHtmlPage } from "@/components/shared/public-page";
import { InquiryForm } from "@/components/shared/inquiry-form";
import { useTranslation } from "@/lib/hooks/use-translation";

/**
 * The subscription page: the fee tables from the CMS, then a way to act on them.
 *
 * <p>The old site ended this page with two links — a membership-form PDF to
 * print and post, and a Joomla-wrapped online request form. Neither was
 * migrated, because both pointed back at the site this one replaces. The form
 * below is the online half rebuilt here: a request lands in the admin inbox
 * rather than in a mailbox, so it can be answered and accounted for.
 */
export default function Page() {
  const { language } = useTranslation("COMMON");
  const hi = language === "hi";

  return (
    <CmsHtmlPage href="/author-desk/subscription" section="AUTHOR_SUBSCRIPTION">
      <div className="mt-10">
        <p className="mb-4 max-w-2xl text-sm leading-relaxed text-gray-600">
          {hi
            ? "सदस्यता हेतु नीचे दिया गया प्रपत्र भरें। कृपया संदेश में यह अवश्य लिखें कि आप व्यक्तिगत सदस्यता चाहते हैं अथवा संस्थागत, कौन-सी अवधि चाहते हैं, तथा पत्रिका किस डाक-पते पर भेजी जाए। सम्पादकीय कार्यालय आपसे भुगतान की जानकारी हेतु सम्पर्क करेगा।"
            : "Use the form below to request a subscription. Please say in your message whether you want an individual or an institutional subscription, which term, and the postal address the journal should be sent to. The editorial office will contact you with payment details."}
        </p>
        <InquiryForm
          type="SUBSCRIPTION"
          headingHi="सदस्यता हेतु आवेदन"
          headingEn="Request a subscription"
        />
      </div>
    </CmsHtmlPage>
  );
}
