frontPanel/src/pages/createQuize/MyQuizzesFull.tsx

53 lines
1.6 KiB
TypeScript
Raw Normal View History

import {Typography, useTheme, Box, Button, SxProps, Theme} from "@mui/material";
import ComplexNavText from "./ComplexNavText";
import QuizCard from "./QuizCard";
import SectionWrapper from "@ui_kit/SectionWrapper";
import React from "react";
2022-12-09 11:48:15 +00:00
interface Props {
outerContainerSx?: SxProps<Theme>;
children?: React.ReactNode;
}
2022-12-09 11:48:15 +00:00
export default function MyQuizzesFull({outerContainerSx: sx, children}: Props) {
2022-12-09 11:48:15 +00:00
const theme = useTheme();
return (
<SectionWrapper
maxWidth="lg"
sx={{
mt: "25px",
mb: "70px",
}}
>
<ComplexNavText text1="Кабинет квизов"/>
2022-12-09 11:48:15 +00:00
<Box
sx={{
display: "flex",
justifyContent: "space-between",
alignItems: "center",
mt: "20px",
mb: "30px",
}}
>
<Typography variant="h4">Мои квизы</Typography>
<Button
2022-12-09 11:48:15 +00:00
variant="contained"
>Создать +</Button>
2022-12-09 11:48:15 +00:00
</Box>
<Box
sx={{
py: "10px",
display: "flex",
flexWrap: "wrap",
gap: "40px",
mb: "60px",
}}
>
<QuizCard name="Название" openCount={0} applicationCount={0} conversionPercent={0}/>
<QuizCard name="Название" openCount={0} applicationCount={0} conversionPercent={0}/>
2022-12-09 11:48:15 +00:00
</Box>
{children}
2022-12-09 11:48:15 +00:00
</SectionWrapper>
)
2022-12-09 11:48:15 +00:00
}