import { Box, Button, Typography, useMediaQuery, useTheme, } from "@mui/material"; import { setQuizStartpageType } from "@root/quizes/actions"; import { useCurrentQuiz } from "@root/quizes/hooks"; import cardImage1 from "../../assets/card-1.png"; import cardImage2 from "../../assets/card-2.png"; import cardImage3 from "../../assets/card-3.png"; import CardWithImage from "./CardWithImage"; export default function Steptwo() { const theme = useTheme(); const isSmallMonitor = useMediaQuery(theme.breakpoints.down(1300)); const quiz = useCurrentQuiz(); const config = quiz?.config; if (!config) return null; // TODO throw and catch with error boundary return ( Стартовая страница ); }