//**Step 10 */
function Questions({questions, onQuestionsChange, hasError}) {
    return(
        <Grid container spacing={4}>
            <Grid item xs={12} sm={12}>
                <FormControl fullWidth>
                    <TextField
                        value={questions.contribute}
                        onChange={ev => onQuestionsChange({...questions, contribute: ev.target.value})}
                        error={hasError && minLenght(questions.contribute, 30)}
                        helperText={hasError && minLenght(questions.contribute, 30) && "Campo requerido"}
                        label="Con tus habilidades y aptitudes, ¿Qué puedes aportar a la sociedad cooperativista?"
                        margin="normal"
                        required
                    />
                </FormControl>
            </Grid>
            <Grid item xs={12} sm={12}>
                <FormControl fullWidth>
                    <TextField
                        value={questions.accomplishment}
                        onChange={ev => onQuestionsChange({...questions, accomplishment: ev.target.value})}
                        error={hasError && minLenght(questions.accomplishment, 30)}
                        helperText={hasError && minLenght(questions.accomplishment, 30) && "Campo requerido"}
                        label="¿Cuál es el mayor logro que has obtenido hasta el momento?"
                        margin="normal"
                        required
                    />
                </FormControl>
            </Grid>
            <Grid item xs={12} sm={12}>
                <FormControl fullWidth>
                    <TextField
                        value={questions.expectation}
                        onChange={ev => onQuestionsChange({...questions, expectation: ev.target.value})}
                        error={hasError && minLenght(questions.expectation, 30)}
                        helperText={hasError && minLenght(questions.expectation, 30) && "Campo requerido"}
                        label="¿Cuáles son tus expectativas con respecto a la sociedad cooperativa?"
                        margin="normal"
                        required
                    />
                </FormControl>
            </Grid>
        </Grid>
    )
}