import { Box } from "@mui/material";
import ContextProviders from "./ContextProviders";
import { QuizIdContext } from "./contexts/QuizIdContext";
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>
    );
}
