UNPKG

mediasfu-reactnative

Version:
22 lines 899 B
/** * 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