2023-04-15 09:10:59 +00:00
|
|
|
|
import { Box, Typography, useTheme } from "@mui/material";
|
|
|
|
|
|
2023-05-07 14:01:03 +00:00
|
|
|
|
import AddImage from "@icons/questionsPage/addImage";
|
|
|
|
|
import AddVideofile from "@icons/questionsPage/addVideofile";
|
2023-08-12 08:31:21 +00:00
|
|
|
|
import { useState } from "react";
|
|
|
|
|
import { CroppingModal } from "@ui_kit/Modal/CroppingModal";
|
2023-04-15 09:10:59 +00:00
|
|
|
|
|
|
|
|
|
export default function ImageAndVideoButtons() {
|
|
|
|
|
const theme = useTheme();
|
2023-08-12 08:31:21 +00:00
|
|
|
|
|
|
|
|
|
const [opened, setOpened] = useState<boolean>(false);
|
|
|
|
|
|
2023-04-15 09:10:59 +00:00
|
|
|
|
return (
|
|
|
|
|
<Box sx={{ display: "flex", alignItems: "center", gap: "12px", mt: "20px", mb: "20px" }}>
|
2023-08-12 08:31:21 +00:00
|
|
|
|
<AddImage onClick={() => setOpened(true)} />
|
|
|
|
|
<CroppingModal opened={opened} onClose={() => setOpened(false)} />
|
2023-04-15 09:10:59 +00:00
|
|
|
|
<Typography
|
|
|
|
|
sx={{
|
|
|
|
|
fontWeight: 400,
|
|
|
|
|
fontSize: "16px",
|
|
|
|
|
lineHeight: "18.96px",
|
|
|
|
|
color: theme.palette.grey2.main,
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Изображение
|
|
|
|
|
</Typography>
|
|
|
|
|
<Typography> или</Typography>
|
|
|
|
|
<AddVideofile />
|
|
|
|
|
<Typography
|
|
|
|
|
sx={{
|
|
|
|
|
fontWeight: 400,
|
|
|
|
|
fontSize: "16px",
|
|
|
|
|
lineHeight: "18.96px",
|
|
|
|
|
color: theme.palette.grey2.main,
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Видео
|
|
|
|
|
</Typography>
|
|
|
|
|
</Box>
|
|
|
|
|
);
|
|
|
|
|
}
|