import { Button, Paper, CircularProgress } from '@mui/material' import ErrorOutlineIcon from '@mui/icons-material/ErrorOutline' import styles from './Plaid.module.scss' /** * Defines state of the component properties injected from a parent component */ interface TanValidationProps { /** Boolean to configure TAN validation state */ error: boolean /** Dispatcher to open the TAN dialog again */ onRetry: () => void } /** * TAN validation display * @param param Component properties * @returns */ const TanValidation: React.FC = ({ error, onRetry }) => { if (!error) { // Default state: Display pending validation return (
Waiting on verification...
Please complete the verification form
) } else { // Error state: From premature dialog close. Displays the retry button return (
Verification failed
There was a problem processing your request, please try again.
) } } export default TanValidation