import { Button, Dialog, DialogActions, DialogContent, DialogTitle, IconButton, Link, Paper } from '@mui/material' import AssuredWorkloadRoundedIcon from '@mui/icons-material/AssuredWorkloadRounded' import CloseIcon from '@mui/icons-material/Close' import HelpIcon from '@mui/icons-material/Help' import DebitComponent from '../Debit/Debit' import styles from './Plaid.module.scss' /** * Define state of the component properties injected from a parent component */ interface DialogProps { /** Boolean control to display the dialog */ open: boolean /** Plaid institution name used for modal display */ institution: string /** Link to guide on locating bank info */ helpLink?: string /** Handler to close the dialog */ onClose: () => void /** Handler to submit the TAN dialog */ onSubmit: () => void } /** * Component for the TAN dialog. Prompts user to enter bank information manually * @param param Component properties */ const TanDialog: React.FC = ({ open, institution, helpLink, onClose, onSubmit }) => { return ( onClose()} maxWidth="xs" fullWidth className={styles.dialog}> onClose()} className={styles.closeBtn}>
Verify your {institution} account
To connect to your bank account and process this transaction securely, please provide the routing and account number associated with this account.
{helpLink && (
How to find my routing and account numbers
)}
) } export default TanDialog