/* eslint-disable lines-around-comment */ import { makeStyles } from '@material-ui/styles'; import React from 'react'; import Button from '../../../base/ui/components/web/Button'; import Checkbox from '../../../base/ui/components/web/Checkbox'; import { BUTTON_TYPES } from '../../../base/ui/constants'; import { Theme } from '../../../base/ui/types'; // @ts-ignore import { isSubmitAnswerDisabled } from '../../functions'; // @ts-ignore import AbstractPollAnswer from '../AbstractPollAnswer'; // @ts-ignore import type { AbstractProps } from '../AbstractPollAnswer'; const useStyles = makeStyles((theme: Theme) => { return { buttonMargin: { marginRight: `${theme.spacing(2)}px` } }; }); const PollAnswer = ({ creatorName, checkBoxStates, poll, setCheckbox, skipAnswer, skipChangeVote, submitAnswer, t }: AbstractProps) => { const { changingVote } = poll; const styles = useStyles(); return (