UNPKG

mediasfu-reactnative-expo

Version:

mediasfu-reactnative-expo – Expo-managed React Native WebRTC SDK for video conferencing, webinars, live streaming, broadcast, screen sharing, whiteboard, chat, recording, live subtitles, translation, and AI agent rooms on iOS, Android, and web. Prebuilt r

31 lines 1.15 kB
import { meetingTimeRemaining as sharedMeetingTimeRemaining } from 'mediasfu-shared'; /** * Handles the remaining time for a meeting and shows an alert if the event type is not 'chat'. * * @param {MeetingTimeRemainingOptions} options - The options for the meeting time remaining. * @param {number} options.timeRemaining - The remaining time in milliseconds. * @param {Function} options.showAlert - The function to show an alert message. * @param {EventType} options.eventType - The type of the event. * @returns {Promise<void>} A promise that resolves when the operation is complete. * * @example * ```typescript * const options = { * timeRemaining: 450000, // 7 minutes and 30 seconds * showAlert: (alert) => console.log(alert.message), * eventType: "meeting", * }; * * await meetingTimeRemaining(options); * // Output: * // "The event will end in 7:30 minutes." * ``` */ export const meetingTimeRemaining = async ({ timeRemaining, showAlert, eventType, }) => { return sharedMeetingTimeRemaining({ timeRemaining, showAlert, eventType, }); }; //# sourceMappingURL=meetingTimeRemaining.js.map