import { Box, Typography } from "@mui/material"; import { useParams } from "react-router-dom"; import { Select as SelectComponent } from "../../../pages/Questions/Select"; import { questionStore, updateQuestionsList } from "@root/questions"; import type { QuizQuestionSelect } from "../../../model/questionTypes/select"; type SelectProps = { question: QuizQuestionSelect; }; export const Select = ({ question }: SelectProps) => { const quizId = Number(useParams().quizId); const { listQuestions } = questionStore(); const totalIndex = listQuestions[quizId].findIndex( ({ id }) => question.id === id ); return ( {question.title} answer)} onChange={(action, num) => { }} /> ); };