@connectycube/chat-widget
Version:
A React component that seamlessly integrates ConnectyCube's real-time chat capabilities into your web applications. This widget offers an out-of-the-box solution for embedding chat features—such as instant messaging, user presence, and file sharing—withou
10 lines (9 loc) • 482 B
TypeScript
import { Chat } from 'connectycube/types';
type NotificationHook = {
showNotification: (title?: string, body?: string, icon?: string) => Promise<Notification | void>;
notifyWithSound: (title?: string, body?: string, icon?: string) => Promise<Notification | void>;
notifyOnMessage: (userId: number, message: Chat.Message) => Promise<Notification | void>;
playAudio: () => void;
};
declare function useNotification(): NotificationHook;
export default useNotification;