UNPKG

stream-chat-react

Version:

React components to create chat conversations or livestream style chat

12 lines (11 loc) 434 B
import React from 'react'; import type { PropsWithChildren } from 'react'; import type { Poll } from 'stream-chat'; export type PollContextValue = { poll: Poll; }; export declare const PollContext: React.Context<PollContextValue | undefined>; export declare const PollProvider: ({ children, poll, }: PropsWithChildren<{ poll: Poll; }>) => React.JSX.Element | null; export declare const usePollContext: () => PollContextValue;