import React, {useState} from 'react';
import { makeStyles } from '@material-ui/core/styles';
import TextField from '@material-ui/core/TextField';
import FormControlLabel from '@material-ui/core/FormControlLabel';
import FormControl from '@material-ui/core/FormControl';
import Radio from '@material-ui/core/Radio';
import RadioGroup from '@material-ui/core/RadioGroup';
import "./NewCaseForm.css"
import {animated, useSpring} from "react-spring";
const useStyles = makeStyles({
backgroundColor: '#00000029',
backgroundColor: '#9b97a28f',
backgroundImage: 'linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))',
function StyledRadio(props) {
const classes = useStyles();
checkedIcon={<span className={clsx(classes.icon, classes.checkedIcon)} />}
icon={<span className={classes.icon} />}
function handleChange(e, setAge) {
export default function Form(props) {
const [age, setAge] = useState('');
const classes = useStyles();
<div className="formContainer">
<animated.div className="formTitle" style={props}>
<animated.div className="About" style={props}>
<input type="text" placeholder="test" onChange={(e) => handleChange(e, setAge)}/>
<animated.div className="genderAnim" style={props}>
<FormControl className="setGenderContainer" component="fieldset">
<RadioGroup className="setGenderBox" defaultValue="other" aria-label="gender"
name="customized-radios">
<FormControlLabel style={{marginRight:50}} value="male" control={<StyledRadio/>} label="Male"/>
<FormControlLabel style={{marginRight:50}} value="female" control={<StyledRadio/>} label="Female"/>
<FormControlLabel style={{marginRight:50}} value="other" control={<StyledRadio/>} label="Other"/>
<animated.div className="statusAnim" style={props}>
<FormControl className="setGenderContainer" component="fieldset">
<RadioGroup className="setGenderBox" defaultValue="Confirmed" aria-label="Status"
name="customized-radios">
<FormControlLabel style={{marginRight:50}} value="Confirmed" control={<StyledRadio/>} label="Confirmed"/>
<FormControlLabel style={{marginRight:50}} value="Recovered" control={<StyledRadio/>} label="Recovered"/>
<FormControlLabel style={{marginRight:50}} value="Hospitalized" control={<StyledRadio/>} label="Hospitalized"/>
<FormControlLabel style={{marginRight:50}} value="Dead" control={<StyledRadio/>} label="Dead"/>
<div className="placesWithTransport">
<div className="movementPlaces">
<animated.div style={props} className="depPlace">
label="Department Region"
className="movementInputs"
color: 'rgba(242, 242, 242, 0.25)'
className="movementInputs"
color: 'rgba(242, 242, 242, 0.25)'
<animated.div style={props} className="arrPlace">
className="movementInputs"
color: 'rgba(242, 242, 242, 0.25)'
className="movementInputs"
color: 'rgba(242, 242, 242, 0.25)'
<animated.div style={props} className="transportAnim">
<RadioGroup className="transport" defaultValue="Plane" aria-label="transport"
name="customized-radios">
<FormControlLabel style={{marginRight:50}} value="Plane" control={<StyledRadio/>} label="Plane"/>
<FormControlLabel style={{marginRight:50}} value="Ship" control={<StyledRadio/>} label="Ship"/>
<FormControlLabel style={{marginRight: 50}} value="Train" control={<StyledRadio/>} label="Train"/>
<FormControlLabel style={{marginRight: 50}} value="Car" control={<StyledRadio/>} label="Car"/>
<animated.div style={props} className="submitBtnContainer">
<div className="submitBtn">Confirm</div>