/** * @fileoverview ServiceForm Component * * A comprehensive form component for service verification requests. * Displays verification form fields, payment information, and service details. * * @example Basic Usage * ```tsx * import ServiceForm from "@/components/verifyman/service-form"; * * {}} * onCancel={() => {}} * onSubmit={() => {}} * /> * ``` */ export interface FormFieldConfig { source: string; label: string; type: "text" | "date" | "file" | "select" | "textarea"; placeholder?: string; required?: boolean; choices?: Array<{ id: string | number; name: string; }>; accept?: string; multiple?: boolean; rows?: number; } export interface ServiceFormProps { /** The title of the service (e.g., "Aadhaar Verification") */ title: string; /** Subtitle/description shown below the title */ subtitle?: string; /** Service identifier (e.g., "aadhaar_verification") */ serviceId: string; /** Payment status - "unpaid" or "paid" */ status?: "unpaid" | "paid"; /** Service price in the base currency */ price: number; /** Discount amount (optional) */ discount?: number; /** Currency symbol (default: "₹") */ currency?: string; /** List of requirements for this service */ requirements: string[]; /** Form field configurations */ formFields: FormFieldConfig[]; /** Callback when "Save draft" is clicked */ onSaveDraft?: () => void; /** Callback when "Cancel" is clicked */ onCancel?: () => void; /** Callback when "Submit" is clicked */ onSubmit?: (data: Record) => void; /** Custom back navigation handler */ onBack?: () => void; /** Additional className for the container */ className?: string; /** Show back button (default: true) */ showBackButton?: boolean; } /** * ServiceForm Component * * A comprehensive form component for service verification requests. * Displays verification form fields, payment information, and service details. * * @component * @param {ServiceFormProps} props - The component props * @returns {JSX.Element} The rendered service form */ export default function ServiceForm({ title, subtitle, serviceId, status, price, discount, currency, requirements, formFields, onSaveDraft, onCancel, onSubmit, onBack, className, showBackButton, }: ServiceFormProps): import("react/jsx-runtime").JSX.Element;