Lets a button open the chat, by reading ChatContext.

Functions

f
useChat(): ChatContextValue

Returns the chat modal's open state, and the functions that open and close it. Needs ChatProvider above, which App mounts around every page.

Usage

import * as mod from "src/hooks/chat/useChat.ts";