UNPKG

mediasfu-reactjs

Version:

MediaSFU Prebuilt ReactJS SDK - Compatible with React 18 & 19, TypeScript & JavaScript

25 lines 1.04 kB
export interface LaunchMessagesOptions { updateIsMessagesModalVisible: (visible: boolean) => void; isMessagesModalVisible: boolean; } export type LaunchMessagesType = (options: LaunchMessagesOptions) => void; /** * Toggles the visibility state of the messages modal. * If the modal is currently visible, it will be closed. If it's hidden, it will be opened. * * @param updateIsMessagesModalVisible - Function to update the visibility state of the messages modal. * @param isMessagesModalVisible - Current visibility state of the messages modal. * * @example * ```typescript * const options: LaunchMessagesOptions = { * updateIsMessagesModalVisible: setModalVisibilityFunction, * isMessagesModalVisible: false, * }; * * launchMessages(options); * // This will open the messages modal if it's currently closed, or close it if it's open. * ``` */ export declare const launchMessages: ({ updateIsMessagesModalVisible, isMessagesModalVisible, }: LaunchMessagesOptions) => void; //# sourceMappingURL=launchMessages.d.ts.map