import * as React from 'react'; import { Remove as RemoveIcon, Add as AddIcon } from '@mui/icons-material'; import { Card,CardContent,Avatar,Checkbox,List,Tooltip,Fade, ListItem,ListItemButton,ListItemIcon,ListItemText, } from '@mui/material' import { deepPurple } from '@mui/material/colors'; function CheckboxexHeader(prop) { return ( {prop.group} ); } function CheckboxesGroup(props) { const [checkA, setCheckA] = React.useState(0); const [checkB, setCheckB] = React.useState(0); const changeA = (event) => { let { id } = event.target if(parseInt( checkB ) !== parseInt(id) ){ setCheckA(parseInt( id )) } }; const changeB = (event) => { let { id } = event.target if(parseInt( checkA ) !== parseInt( id )){ setCheckB(parseInt( id )) } }; return ( {props.quiz.map((value) => { const labelId = `checkbox-list-label-${value.id}`; return ( ); })} ); } export function Question({quiz, index, current}) { let { instrucciondepregunta, respuestas} = quiz let checked = index === current; return (
); }