import React, { useState } from 'react';
import AdminQuiz from './AdminQuiz'
import AdminSetting from './AdminSetting'
let QuizBtn = []
function Admin() {
const [result, setresult] = useState('')
const [QuizBtnCount, setQuizBtnCount] = useState(4)
function handleClickSetting() {
setresult()
}
function handleClickQuiz(e) {
(JSON.parse(localStorage.getItem('QnA')) === null) ? setresult() : setresult()
}
function handleClickAddQuiz() {
QuizBtn.push(
)
setQuizBtnCount(QuizBtnCount + 1)
}
return (
<>
ADMIN
{QuizBtn.map((element) => element)}
{result}
>
)
}
export default Admin