2024-02-01 13:18:16 +00:00
|
|
|
import { Box } from "@mui/material";
|
2024-02-02 14:35:02 +00:00
|
|
|
import QuizAnswerer from "./QuizAnswerer";
|
2024-02-01 19:14:27 +00:00
|
|
|
import { QuizIdContext } from "./contexts/QuizIdContext";
|
2024-02-01 13:18:16 +00:00
|
|
|
|
|
|
|
|
|
|
|
interface Props {
|
|
|
|
quizId: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export default function WidgetApp({ quizId }: Props) {
|
|
|
|
|
|
|
|
return (
|
|
|
|
<QuizIdContext.Provider value={quizId}>
|
2024-02-02 14:35:02 +00:00
|
|
|
<Box sx={{
|
|
|
|
width: "100%",
|
|
|
|
height: "100%",
|
|
|
|
}}>
|
|
|
|
<QuizAnswerer />
|
|
|
|
</Box>
|
2024-02-01 13:18:16 +00:00
|
|
|
</QuizIdContext.Provider>
|
|
|
|
);
|
|
|
|
}
|