Service to toggle the visibility of a waiting modal.

The options to control the waiting modal visibility.

Function to update the visibility of the waiting modal.

Current visibility state of the waiting modal.

const launchWaitingService = new LaunchWaiting();
launchWaitingService.launchWaiting({
updateIsWaitingModalVisible: (isVisible) => console.log(`Modal is now ${isVisible ? 'visible' : 'hidden'}`),
isWaitingModalVisible: false,
});

This example toggles the modal's visibility state, making it visible if it was hidden and vice versa.

Constructors

Methods

Constructors

Methods