import React from "react"; import { NavLink } from "react-router-dom"; import { Outlet, useNavigate, useParams } from "react-router-dom"; export const Preview = () => { let { surveyId } = useParams<{ surveyId: string }>(); const navigate = useNavigate(); return (
isActive ? { width: "140px", color: "white", backgroundColor: "#008080", borderTopLeftRadius: "25px", borderBottomLeftRadius: "25px", textAlign: "center", fontWeight: "bold", fontSize: "20px", } : { width: "140px", borderWidth: "1px", borderColor: "#008080", borderTopLeftRadius: "25px", borderBottomLeftRadius: "25px", textAlign: "center", fontSize: "18px", } } >
설문지 수정
isActive ? { width: "140px", color: "white", backgroundColor: "#008080", borderTopRightRadius: "25px", borderBottomRightRadius: "25px", textAlign: "center", fontWeight: "bold", fontSize: "20px", } : { width: "140px", borderWidth: "1px", borderColor: "#008080", borderTopRightRadius: "25px", borderBottomRightRadius: "25px", textAlign: "center", fontSize: "18px", } } >
응답결과
); };