UNPKG

@100mslive/roomkit-react

Version:

![Banner](https://github.com/100mslive/web-sdks/blob/06c65259912db6ccd8617f2ecb6fef51429251ec/prebuilt-banner.png)

23 lines (22 loc) 787 B
import React from 'react'; import { HMSPollQuestionCreateParams, HMSPollQuestionOptionCreateParams } from '@100mslive/react-sdk'; export declare const QuestionForm: ({ question, index, length, onSave, removeQuestion, isQuiz, }: { question: HMSPollQuestionCreateParams & { draftID: number; }; index: number; length: number; onSave: (optionParams: HMSPollQuestionCreateParams & { draftID: number; saved: boolean; }) => void; removeQuestion: () => void; isQuiz: boolean; }) => React.JSX.Element; export declare const isValidQuestion: ({ text, type, options, weight, isQuiz, }: { text: string; type: string; options: HMSPollQuestionOptionCreateParams[]; weight: number; isQuiz?: boolean | undefined; }) => boolean;