frontPanel/src/pages/Result/DescriptionForm/ImageAndVideoButtons.tsx

41 lines
1.2 KiB
TypeScript
Raw Normal View History

2023-10-16 14:34:12 +00:00
import { Box, Typography, useTheme, useMediaQuery } from "@mui/material";
2023-04-15 09:10:59 +00:00
import AddImage from "@icons/questionsPage/addImage";
import AddVideofile from "@icons/questionsPage/addVideofile";
2023-09-13 14:14:27 +00:00
import { CropModal } from "@ui_kit/Modal/CropModal";
import { openCropModal } from "@root/cropModal";
2023-04-15 09:10:59 +00:00
export default function ImageAndVideoButtons() {
const theme = useTheme();
2023-10-16 14:34:12 +00:00
const isMobile = useMediaQuery(theme.breakpoints.down(400));
2023-08-12 08:31:21 +00:00
2023-04-15 09:10:59 +00:00
return (
<Box sx={{ display: "flex", alignItems: "center", gap: "12px", mt: "20px", mb: "20px" }}>
<AddImage onClick={() => openCropModal("", "")} />
<CropModal />
2023-04-15 09:10:59 +00:00
<Typography
sx={{
fontWeight: 400,
fontSize: "16px",
lineHeight: "18.96px",
color: theme.palette.grey2.main,
}}
>
2023-10-16 14:34:12 +00:00
{!isMobile && "Изображение"}
2023-04-15 09:10:59 +00:00
</Typography>
<Typography> или</Typography>
<AddVideofile />
<Typography
sx={{
fontWeight: 400,
fontSize: "16px",
lineHeight: "18.96px",
color: theme.palette.grey2.main,
}}
>
2023-10-16 14:34:12 +00:00
{!isMobile && "Видео"}
2023-04-15 09:10:59 +00:00
</Typography>
</Box>
);
}