UNPKG

matrix-react-sdk

Version:
19 lines (18 loc) 579 B
import React, { ReactNode } from "react"; import { PollAnswerSubevent } from "matrix-js-sdk/src/extensible_events_v1/PollStartEvent"; type PollOptionContentProps = { answer: PollAnswerSubevent; voteCount: number; displayVoteCount?: boolean; isWinner?: boolean; }; interface PollOptionProps extends PollOptionContentProps { pollId: string; totalVoteCount: number; isEnded?: boolean; isChecked?: boolean; onOptionSelected?: (id: string) => void; children?: ReactNode; } export declare const PollOption: React.FC<PollOptionProps>; export {};