import { default as Modal } from '../../../components/modal'; export interface VerificationModalProps { /** * Modal open/closed state. */ isOpen: boolean; /** * Callback function to close the modal * * Invoked on ESC keypress or clicking the "X" to close the modal. */ closeModal: React.ComponentProps['closeModal']; /** * Key of the component that has the email value. * * @todo This should probably use the *prefixed* key instead of just the component key * for backend validation purposes -> check this and create a bug issue if it doesn't * work in edit grids. Currently the formio.js variant just grabs `this.component.key`, * so this is likely broken for edit grids in production right now. */ componentKey: string; /** * Email address to verify. */ emailAddress: string; /** * Callback to invoke when the email was successfully verified. */ onVerified: () => void; } /** * Modal for the email verification interaction flow. * * The user gets prompted to request a verification code, which must be entered * to complete the verification. * * @todo The UX/flow may be redesigned: https://github.com/open-formulieren/open-forms/issues/5744 */ declare const VerificationModal: React.FC; export default VerificationModal;