import React, { useState } from 'react'; // import { Link } from 'react-router-dom'; function Admin() { // let QnAadmin = [] // let Q = [] // let choose = [] // let N = [] const [question, setQuestion] = useState('') const [choose, setChoose] = useState('') const [answer, setAnswer] = useState('') const [password, setPassword] = useState('') const [adminpassword, setAdminPassword] = useState('') const [time, setTime] = useState('') const [addQuiz, setaddQuiz] = useState('') const [selectOption, setselectOption] = useState('') const [done, setDone] = useState(false) const handleChangeQuestion = (event) => { setQuestion(event.target.value) } const handleChangechoose = (event) => { setChoose(event.target.value) } const handleChangeanswer = (event) => { setAnswer(event.target.value) } const handleChangePassword = (event) => { setPassword(event.target.value) } const handleChangeAdminPassword = (event) => { setAdminPassword(event.target.value) } const handleChangeTime = (event) => { setTime(event.target.value) } function handleClick() { alert('입력이 완료되었습니다') localStorage.setItem('Q', question) localStorage.setItem('Choose', choose) localStorage.setItem('Answer', answer) localStorage.setItem('P', password) localStorage.setItem('AP', adminpassword) localStorage.setItem('T', time * 1000) setDone(true) } function addSelectOption() { let list = function () { return