import React from 'react'; import { HMSPollQuestionOption } from '@100mslive/react-sdk'; import { Progress } from '../../../../'; export const VoteProgress = ({ option, totalResponses }: { option: HMSPollQuestionOption; totalResponses: number }) => { const showProgress = typeof option.voteCount === 'number' && typeof totalResponses === 'number' && totalResponses > 0; const progressValue = (100 * (option.voteCount || 0)) / totalResponses; return showProgress ? ( ) : null; };