@pagamio/frontend-commons-lib
Version:
Pagamio library for Frontend reusable components like the form engine and table container
39 lines (38 loc) • 1.39 kB
TypeScript
import type { CustomAuthConfig } from '../types';
import type { BaseAuthPageProps } from './AuthFormUtils';
/**
* Props for the PagamioForgotPasswordPage component
* @template T - Authentication configuration type
*/
interface PagamioForgotPasswordPageProps<T extends CustomAuthConfig> extends BaseAuthPageProps {
/** Customizable text content */
text?: {
title: string;
subtitle: string;
emailLabel: string;
submitButtonLabel: string;
loadingButtonLabel: string;
backToLoginLabel: string;
successMessage: string;
};
/** Callback handlers */
onSuccess?: () => void;
onError?: (error: Error) => void;
onBackToLogin?: () => void;
}
export declare const forgotPasswordDefaultText: {
title: string;
subtitle: string;
emailLabel: string;
submitButtonLabel: string;
loadingButtonLabel: string;
backToLoginLabel: string;
successMessage: string;
};
/**
* Generic Forgot Password Page component
* @template T - Authentication configuration type
*/
export declare function PagamioForgotPasswordPage<T extends CustomAuthConfig>({ logo, text, appLabel, onSuccess, onError, onBackToLogin, className, }: Readonly<PagamioForgotPasswordPageProps<T>>): import("react/jsx-runtime").JSX.Element;
export default PagamioForgotPasswordPage;
export type { PagamioForgotPasswordPageProps };