@goodpath/react-chat-components
Version:
PubNub Chat Components is a development kit of React components that aims to help you to easily build Chat applications using PubNub infrastructure. It removes the complexicity of picking an adequate Chat engine, learning its APIs and dealing with its low
7 lines (6 loc) • 428 B
TypeScript
import { MutableRefObject, MouseEvent } from "react";
import { MessageEnvelope } from "./types";
export declare const getNameInitials: (name: string) => string;
export declare const getPredefinedColor: (uuid: string) => string;
export declare const useOuterClick: (callback: (e: MouseEvent) => unknown) => MutableRefObject<HTMLDivElement>;
export declare const getLastMessageUpdate: (envelope: MessageEnvelope) => string;