import React from "react";
import { UserPlus, CreditCard, Info } from "lucide-react";
import { GuideItem } from "@/components/shared/GuideItem";
import type { HelpContent } from "./types";

/** Help content for /dashboard/supervisor/manual. */
export const supervisorManualHelpContent: HelpContent = {
  title: "Manual registration",
  subtitle: "Register someone and take payment on their behalf.",
  tabs: [
    {
      key: "register",
      label: "Register",
      icon: UserPlus,
      content: (
        <div className="space-y-4">
          <p>Pick an event, then either search for an existing user or enter guest details (name, and at least one of email or phone). Choose ticket options and quantities — early-bird pricing is applied automatically — then create the registration. A new guest account is created inactive, and an activation link is sent immediately (by email if provided, otherwise WhatsApp) so they can set their own password.</p>
          <p className="text-xs text-gray-500">After creating a registration, the Record Payment tab is pre-filled with it — switch tabs to take payment right away.</p>
        </div>
      ),
    },
    {
      key: "payment",
      label: "Record Payment",
      icon: CreditCard,
      content: (
        <div className="space-y-4">
          <p>Search for a user, pick one of their registrations with an outstanding balance, and enter the amount, method, and (optionally) a backdated payment time.</p>
        </div>
      ),
    },
  ],
};

/** Help content for /dashboard/supervisor/manual-registration — the older, simpler form. */
export const supervisorManualRegistrationLegacyHelpContent: HelpContent = {
  title: "Manual registration (legacy)",
  subtitle: "A basic form for creating a registration directly.",
  quickLinks: [
    { label: "Manual registration & payment", href: "/dashboard/supervisor/manual", icon: UserPlus },
  ],
  tabs: [
    {
      key: "overview",
      label: "Overview",
      icon: Info,
      content: (
        <div className="space-y-4">
          <p>This is an older, simplified registration form — it requires typing the exact Event ID and Option ID rather than picking from a list, and doesn&apos;t support payment or early-bird pricing.</p>
          <div className="space-y-4">
            <GuideItem icon={UserPlus} title="Prefer the newer page" tone="brand">
              The Manual Registration &amp; Payment page (linked above) offers event/user search, live pricing, and lets you take payment in the same flow — use it unless you specifically need this one.
            </GuideItem>
          </div>
        </div>
      ),
    },
  ],
};
