frontAnswerer/src/WidgetApp.tsx

23 lines
495 B
TypeScript
Raw Normal View History

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";
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>
</QuizIdContext.Provider>
);
}