Function launchMessages

Toggles the visibility state of the messages modal. If the modal is currently visible, it will be closed. If it's hidden, it will be opened.

const options: LaunchMessagesOptions = {
updateIsMessagesModalVisible: setModalVisibilityFunction,
isMessagesModalVisible: false,
};

launchMessages(options);
// This will open the messages modal if it's currently closed, or close it if it's open.