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

38 lines
1.1 KiB
TypeScript
Raw Normal View History

2023-12-02 09:35:35 +00:00
import { Box, Typography, useMediaQuery, useTheme } from "@mui/material";
2023-04-15 09:10:59 +00:00
import AddImage from "@icons/questionsPage/addImage";
import AddVideofile from "@icons/questionsPage/addVideofile";
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" }}>
2023-12-01 18:05:59 +00:00
<AddImage onClick={undefined/* TODO () => openCropModal("", "") */} />
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>
);
}