import React, { useState } from "react"; import { useNavigate } from "react-router-dom"; import { SurveyType } from "../types"; export const Profile = () => { const navigate = useNavigate(); // const [Ssurvey, setSsurvey] = useState({ // title: "", // comment: "", // //questions 는 _id들의 배열 // questions: [], // }); // function handleAnswer(event: React.ChangeEvent) { // setSsurvey({ // ...survey, // [event.currentTarget.name]: event.currentTarget.value, // }) // } const createSurvey = () => { // 먼저 서버에 survey 테이블에 새로운 survey 항목 추가 로직 필요 navigate("/surveys/create", { replace: true }); }; return (
나의 설문조사

Lorem ipsum dolor sit amet, consectetur adipisicing elit.

Lorem ipsum dolor sit amet, consectetur adipisicing elit.

Lorem ipsum dolor sit amet, consectetur adipisicing elit.

Lorem ipsum dolor sit amet, consectetur adipisicing elit.

); };