UNPKG

pagamio-frontend-commons-lib

Version:

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

43 lines (42 loc) 1.53 kB
import type { CustomAuthConfig } from '../types'; import type { BaseAuthPageProps } from './AuthFormUtils'; /** * Props for the PagamioResetPasswordPage component * @template T - Authentication configuration type */ interface PagamioResetPasswordPageProps<T extends CustomAuthConfig> extends BaseAuthPageProps { /** Reset token from URL or other source */ token: string; /** Customizable text content */ text?: { title: string; subtitle: string; passwordLabel: string; confirmPasswordLabel: string; submitButtonLabel: string; loadingButtonLabel: string; backToLoginLabel: string; successMessage: string; }; /** Callback handlers */ onSuccess?: () => void; onError?: (error: Error) => void; onBackToLogin?: () => void; } export declare const resetPasswordDefaultText: { title: string; subtitle: string; passwordLabel: string; confirmPasswordLabel: string; submitButtonLabel: string; loadingButtonLabel: string; backToLoginLabel: string; successMessage: string; }; /** * Generic Reset Password Page component * @template T - Authentication configuration type */ export declare function PagamioResetPasswordPage<T extends CustomAuthConfig>({ logo, text, appLabel, token, onSuccess, onError, onBackToLogin, className, }: Readonly<PagamioResetPasswordPageProps<T>>): import("react/jsx-runtime").JSX.Element; export default PagamioResetPasswordPage; export type { PagamioResetPasswordPageProps };