import { Box, Button, Skeleton, useTheme, useMediaQuery } from "@mui/material"; import Plus from "@icons/questionsPage/plus"; import Image from "../assets/icons/questionsPage/image"; import type { SxProps, Theme } from "@mui/material"; interface Props { sx?: SxProps; imageSrc?: string; onImageClick?: () => void; onPlusClick?: () => void; uploading: boolean; } export default function AddOrEditImageButton({ onImageClick, onPlusClick, sx, imageSrc, uploading = false, }: Props) { const theme = useTheme(); const isMobile = useMediaQuery(theme.breakpoints.down(790)); return ( <> {uploading ? ( ) : ( )} ); }