import { Box, Button, Avatar, CircularProgress, Typography } from "@mui/material"; interface ImageUploadFieldProps { label?: string; value: string; uploading?: boolean; onUpload: (file: File) => void; size?: number; baseUrl: string; } export default function ImageUploadField({ label = "Upload Image", value, uploading = false, onUpload, size = 64, baseUrl, }: ImageUploadFieldProps) { const imgSrc = value ? baseUrl.replace(/\/+$/, "") + "/" + value.replace(/^\/+/, "") : ""; return ( {label} ); }