/** * @fileoverview ServiceInfoCard Component * * A card component for displaying verification service information in a catalog format. * * @example Basic Usage * ```tsx * import ServiceInfoCard from "@/components/verifyman/service-info-card"; * * handleServiceClick("aadhaar")} * /> * ``` * * @example Grid Layout * ```tsx *
* {services.map((service) => ( * * ))} *
* ``` */ /** * Props for the ServiceInfoCard component. * * @interface ServiceInfoCardProps */ export interface ServiceInfoCardProps { /** The title/name of the service */ title: string; /** A brief description of what the service does */ description: string; /** The current status of the service - "active" or "inactive" */ status: "active" | "inactive"; /** The processing time for the service (e.g., "Immediately", "24-48 hours") */ processingTime: string; /** The number of requirements needed for this service */ requirementsCount: number; /** The price of the service (e.g., "₹10", "$50") */ price: string; /** The payment type (e.g., "One-time payment", "Monthly subscription") */ paymentType: string; /** Array of requirement names that will be displayed with checkmarks */ requirements: string[]; /** Optional callback function called when the "Get Started" button is clicked */ onGetStarted?: () => void; /** Optional additional CSS classes to apply to the card */ className?: string; } /** * ServiceInfoCard Component * * A card component for displaying verification service information in a catalog format. * Displays service details including status, processing time, requirements, pricing, and * provides a call-to-action button. * * @component * @example * ```tsx * import ServiceInfoCard from "@/components/verifyman/service-info-card"; * * function ServiceCatalog() { * return ( * console.log("Get started clicked")} * /> * ); * } * ``` * * @example * ```tsx * // Grid layout with multiple services * function ServiceCatalogGrid() { * const services = [ * { * title: "PAN Verification", * description: "Verify PAN against authoritative sources for KYC.", * status: "active" as const, * processingTime: "Immediately", * requirementsCount: 2, * price: "₹200", * paymentType: "One-time payment", * requirements: ["Pan Card", "Passport"], * }, * // ... more services * ]; * * return ( *
* {services.map((service, index) => ( * * ))} *
* ); * } * ``` * * @example * ```tsx * // With custom styling and click handler * { * // Navigate to service page or open modal * router.push(`/services/passport-verification`); * }} * /> * ``` * * @param {ServiceInfoCardProps} props - The component props * @returns {JSX.Element} The rendered service info card */ export default function ServiceInfoCard({ title, description, status, processingTime, requirementsCount, price, paymentType, requirements, onGetStarted, className, }: ServiceInfoCardProps): import("react/jsx-runtime").JSX.Element;