// @flow import { Checkbox } from '@atlaskit/checkbox'; import React from 'react'; import AbstractPollAnswer from '../AbstractPollAnswer'; import type { AbstractProps } from '../AbstractPollAnswer'; const PollAnswer = (props: AbstractProps) => { const { checkBoxStates, poll, setCheckbox, skipAnswer, submitAnswer, t } = props; return (
{ poll.question }
    { poll.answers.map((answer, index) => (
  1. { answer.name } } // eslint-disable-next-line react/jsx-no-bind onChange = { ev => setCheckbox(index, ev.target.checked) } size = 'large' />
  2. )) }
); }; /* * We apply AbstractPollAnswer to fill in the AbstractProps common * to both the web and native implementations. */ // eslint-disable-next-line new-cap export default AbstractPollAnswer(PollAnswer);