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