• This component displays an alert box with a message, which can be an error, a warning, an info or a success message.

    Parameters

    • props: {
          displayMessage: boolean;
          infoMessage: string;
          messageType:
              | "error"
              | "success"
              | "warning"
              | "info";
          setDisplayMessage: ((arg: boolean) => void);
          textAddition?: string;
      }

      Properties of this view:

      • displayMessage: boolean

        Flag that specifies whether or not to display the information message box

      • infoMessage: string

        The content of the info message

      • messageType:
            | "error"
            | "success"
            | "warning"
            | "info"

        The message types MESSAGE_TYPE

      • setDisplayMessage: ((arg: boolean) => void)

        Setter for displayMessage flag

          • (arg): void
          • Parameters

            • arg: boolean

            Returns void

      • OptionaltextAddition?: string

        Adds the string after the message

    Returns React.ReactElement