function ChatProvider
ChatProvider(unnamed 0: ChatProviderProps): React.JSX.Element

Provides ChatContext and renders the one chat modal while it is open. openChat opens it, and so does a ?chat= query parameter on any page: ?chat=open, or ?chat=<message id> to open on that message, which is where a chat mention notification links. It stays closed for visitors.

Parameters

Return Type

React.JSX.Element

Usage

import { ChatProvider } from "src/contexts/chat/ChatProvider.tsx";