import { Box, Typography, useTheme } from "@mui/material"; import type { QuizQuestionPage } from "../../../model/questionTypes/page"; import YoutubeEmbedIframe from "../tools/YoutubeEmbedIframe"; type PageProps = { currentQuestion: QuizQuestionPage; }; export const Page = ({ currentQuestion }: PageProps) => { const theme = useTheme(); return ( {currentQuestion.title} {currentQuestion.content.text} { //@ts-ignore currentQuestion.content.useImage ? ( ) : ( )} ); };