UNPKG

stream-chat-react

Version:

React components to create chat conversations or livestream style chat

10 lines (9 loc) 620 B
import React from 'react'; import type { PollOption } from 'stream-chat'; import type { DefaultStreamChatGenerics } from '../../../../types'; export type PollOptionWithVotesProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = { option: PollOption<StreamChatGenerics>; countVotesPreview?: number; showAllVotes?: () => void; }; export declare const PollOptionWithLatestVotes: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ countVotesPreview, option, showAllVotes, }: PollOptionWithVotesProps<StreamChatGenerics>) => React.JSX.Element;