import { QuizAnswerer } from "@/index"; import lightTheme from "@/utils/themes/light"; import { Box, Button, Grow, ThemeProvider } from "@mui/material"; import { useState } from "react"; import { createPortal } from "react-dom"; const PADDING = 10; interface Props { quizId: string; position: "left" | "right"; buttonColor?: string; } export default function QuizSideButton({ quizId, position, buttonColor }: Props) { const [isQuizShown, setIsQuizShown] = useState(false); return createPortal( {isQuizShown ? ( ) : ( )} , document.body ); }