UNPKG

@pagamio/frontend-commons-lib

Version:

Pagamio library for Frontend reusable components like the form engine and table container

37 lines (36 loc) 1.02 kB
/** * Feedback Form Configuration Types */ export interface FeedbackFormConfig { /** Base URL of the Google Form */ baseUrl: string; /** Mapping of field names to Google Form entry IDs */ fieldIds: { email?: string; userRole?: string; userId?: string; userName?: string; [key: string]: string | undefined; }; } export interface FeedbackUserData { email?: string; userRole?: string; userId?: string | number; userName?: string; [key: string]: string | number | undefined; } export interface FeedbackPageProps { /** Configuration for the feedback form */ config: FeedbackFormConfig; /** User data to pre-fill the form */ userData?: FeedbackUserData; /** Optional callback for navigation back */ onNavigateBack?: () => void; /** Optional custom page title */ title?: string; /** Optional custom page description */ description?: string; /** Optional custom button text */ buttonText?: string; }