import { createMessageComponent } from '../../lib';
import Context from './Context';

/**
 * Invalid email message for a ResetRequestForm
 * Displayed if an invalid email address is entered into the form.
 * All props are passed down to SUI's `<Message>`
 * @param {Object} props - Props for SUI `<Message>`.
 * @returns {Object} component
 */
export const ResetRequestFormInvalidEmailMessage = createMessageComponent(
  'ResetRequestFormInvalidEmailMessage',
  Context,
  'error',
  'email',
  { error: true }
);

export default ResetRequestFormInvalidEmailMessage;
