UNPKG

@brightlayer-ui/react-native-auth-workflow

Version:

Re-usable workflow components for Authentication and Registration within Eaton applications.

27 lines (26 loc) 893 B
import { ErrorManagerProps } from '../../components/Error/index.js'; import { WorkflowCardProps } from '../../components/WorkflowCard/WorkflowCard.types.js'; import { EmptyStateProps } from '@brightlayer-ui/react-native-components'; export type SuccessScreenProps = WorkflowCardProps & { /** * EmptyStateProps, which include properties such as icon, title, and description etc. */ EmptyStateProps?: EmptyStateProps; /** * To display label for the button */ dismissButtonLabel?: string; /** * The function to call when the dismiss button is clicked */ canDismiss?: boolean | (() => boolean); /** * The function to call when user clicks button * @returns {void} */ onDismiss?: () => void; /** * The configuration for customizing how errors are displayed */ errorDisplayConfig?: ErrorManagerProps; };