mediasfu-reactnative
Version:
MediaSFU Prebuilt React Native SDK
22 lines • 899 B
JavaScript
/**
* Toggles the visibility of the participants modal.
*
* @param {LaunchParticipantsOptions} options - The options for toggling the participants modal.
* @param {Function} options.updateIsParticipantsModalVisible - Function to update the visibility state of the participants modal.
* @param {boolean} options.isParticipantsModalVisible - Current visibility state of the participants modal.
*
* @example
* ```typescript
* launchParticipants({
* updateIsParticipantsModalVisible: (isVisible) => setParticipantsModalVisible(isVisible),
* isParticipantsModalVisible: true,
* });
* ```
*/
export const launchParticipants = ({ updateIsParticipantsModalVisible, isParticipantsModalVisible, }) => {
/**
* Toggle the visibility of the participants modal.
*/
updateIsParticipantsModalVisible(!isParticipantsModalVisible);
};
//# sourceMappingURL=launchParticipants.js.map