frontPanel/src/pages/createQuize/ExpandableQuizBlock.tsx

86 lines
1.9 KiB
TypeScript
Raw Normal View History

2023-12-31 02:53:25 +00:00
import { Box, Button, IconButton, Typography, useTheme } from "@mui/material";
import ExpandIcon from "@icons/ExpandIcon";
2022-12-09 11:48:15 +00:00
import MoreHorizIcon from "@mui/icons-material/MoreHoriz";
interface Props {
2023-12-31 02:53:25 +00:00
name: string;
2022-12-09 11:48:15 +00:00
}
export default function ExpandableQuizBlock({ name }: Props) {
2023-12-31 02:53:25 +00:00
const theme = useTheme();
2022-12-09 11:48:15 +00:00
2023-12-31 02:53:25 +00:00
return (
<Box sx={{}}>
<Box
sx={{
display: "flex",
alignItems: "center",
}}
>
<Typography variant="h5" mb="5px">
Название
</Typography>
2022-12-09 11:48:15 +00:00
<Box
2023-12-31 02:53:25 +00:00
sx={{
flexGrow: 1,
width: "auto",
height: "10px",
borderBottom: "1px solid #9A9AAF",
mx: "5px",
mb: "0px",
}}
/>
<Typography color={theme.palette.grey3.main} mb="0px">
Все заявки проекта
</Typography>
<IconButton
sx={{
height: "32px",
ml: "10px",
p: 0,
}}
>
<ExpandIcon />
</IconButton>
<IconButton
sx={{
color: theme.palette.brightPurple.main,
ml: "16px",
}}
2022-12-09 11:48:15 +00:00
>
2023-12-31 02:53:25 +00:00
<MoreHorizIcon sx={{ transform: "scale(1.75)" }} />
</IconButton>
</Box>
<Box
sx={{
display: "flex",
gap: "16px",
mt: "25px",
}}
>
<Button
variant="outlined"
sx={{
backgroundColor: "#EEE4FC",
color: theme.palette.grey3.main,
width: "100%",
}}
>
Quiz нет
</Button>
<Button
variant="contained"
sx={{
backgroundColor: theme.palette.brightPurple.main,
p: "10px",
width: "44px",
minWidth: "44px",
}}
>
+
</Button>
</Box>
</Box>
);
}