import { Theme } from '@mui/material'; import React from 'react'; import { makeStyles } from 'tss-react/mui'; import Button from '../../../base/ui/components/web/Button'; import Checkbox from '../../../base/ui/components/web/Checkbox'; import { BUTTON_TYPES } from '../../../base/ui/constants'; import { isSubmitAnswerDisabled } from '../../functions'; import AbstractPollAnswer, { AbstractProps } from '../AbstractPollAnswer'; const useStyles = makeStyles()((theme: Theme) => { return { buttonMargin: { marginRight: theme.spacing(2) } }; }); const PollAnswer = ({ creatorName, checkBoxStates, poll, setCheckbox, skipAnswer, skipChangeVote, submitAnswer, t }: AbstractProps) => { const { changingVote } = poll; const { classes: styles } = useStyles(); return (