mediasfu-reactnative
Version:
MediaSFU Prebuilt React Native SDK
21 lines • 894 B
JavaScript
/**
* Toggles the visibility of the waiting modal.
*
* @param {LaunchWaitingOptions} options - The options for toggling the waiting modal visibility.
* @param {Function} options.updateIsWaitingModalVisible - Function to update the visibility state of the waiting modal.
* @param {boolean} options.isWaitingModalVisible - Current visibility state of the waiting modal.
*
* @example
* ```typescript
* const options = {
* updateIsWaitingModalVisible: (visible: boolean) => console.log("Waiting modal visibility updated:", visible),
* isWaitingModalVisible: true,
* };
* launchWaiting(options); // Toggles the modal visibility
* ```
*/
export const launchWaiting = ({ updateIsWaitingModalVisible, isWaitingModalVisible, }) => {
// Toggle the visibility of the waiting modal
updateIsWaitingModalVisible(!isWaitingModalVisible);
};
//# sourceMappingURL=launchWaiting.js.map