const widgetOwner = "neardigitalcollective.near"; const renderMultipleChoiceInput = ({ questionNumber, questionType, option, optionNumber, }) => ( <> <Widget src={`${widgetOwner}/widget/EasyPoll.DisplayMultiVote`} props={{ state: props.state, questionNumber, questionType, option, optionNumber, canVote: props.canVote, getBgColor: props.getBgColor, getFontColor: props.getFontColor, countVotes: props.countVotes, getBorderRadious: props.getBorderRadious, calculatePercentageOfOption: props.calculatePercentageOfOption, getBlockTimestamp: props.getBlockTimestamp, clickCheckboxInputHandler: props.clickCheckboxInputHandler, clickRadioInputHandler: props.clickRadioInputHandler, getInputStyles: props.getInputStyles, }} /> </> ); return ( <> <Widget src={`f2bc8abdb8ba64fe5aac9689ded9491ff0e6fdcd7a5c680b7cf364142d1789fb/widget/EasyPoll.DisplayMultiVote2`} props={{ state: props.state, poll: props.poll, renderMultipleChoiceInput, getInputStyles: props.getInputStyles, hasVoted: props.hasVoted, getPublicationParams: props.getPublicationParams, stateUpdate: (data) => props.stateUpdate(data), isQuestionOpen: props.isQuestionOpen, isVoteValid: props.isVoteValid, validAnswersToThisPoll: props.validAnswersToThisPoll, }} /> </> );