importReactfrom"react";import{Card,List}from"antd";/** * Display of predefined poll question and answer choices * Show the number of votes for each answer choice * */functionPollDisplay({ question, choices }){return(<Card><h2>Poll Question: {question}</h2><List>{choices.map((choice)=>(<likey={choice.id}>{choice.label} : {choice.votes} Votes
</li>))}</List></Card>);}exportdefaultPollDisplay;
importReactfrom"react";import{Button}from"antd";functionAnotherUserParticipation({ onClick }){functionhandleCLick(event){event.preventDefault();onClick();}return<ButtononClick={handleCLick}>An other user participation</Button>;}exportdefaultAnotherUserParticipation;
Thanks You Message
importReactfrom"react";import{Card}from"antd";functionThankYouMessage(){return<Card>Thanks for voting</Card>;}exportdefaultThankYouMessage;