import React, { Dispatch, SetStateAction } from 'react'; import { HMSPoll } from '@100mslive/react-sdk'; import { PeerParticipationSummary } from './PeerParticipationSummary'; // @ts-ignore import { QuestionCard } from './QuestionCard'; export const StandardView = ({ poll, localPeerResponses, updateSavedResponses, }: { poll: HMSPoll; localPeerResponses: Record; updateSavedResponses: Dispatch>>; }) => { if (!poll?.questions) { return null; } const isQuiz = poll.type === 'quiz'; const isStopped = poll.state === 'stopped'; return ( <> {isQuiz && isStopped ? : null} {poll.questions?.map((question, index) => ( ))} ); };