UNPKG

@brightlayer-ui/react-auth-workflow

Version:

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

27 lines (26 loc) 884 B
import { ErrorManagerProps } from '../../components/Error/types.js'; import { WorkflowCardProps } from '../../components/WorkflowCard/WorkflowCard.types.js'; import { EmptyStateProps } from '@brightlayer-ui/react-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; };