function useChat
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.

Return Type

Usage

import { useChat } from "src/hooks/chat/useChat.ts";