132 | {/* Main File Input */}
133 |
134 |
135 | {imageUrl ? (
136 | // Image Preview
137 |
![{acceptedFiles[0]?.name}]({imageUrl})
142 | ) : (
143 | // Upload Icon
144 |
145 |
146 |
drag & drop to upload
147 |
148 |
149 |
150 |
151 | )}
152 |
153 | {/* Remove Image Icon */}
154 | {imageUrl && !disabled && (
155 |
{
158 | e.stopPropagation();
159 | void onChange?.(undefined);
160 | }}
161 | >
162 |
163 |
164 |
165 |
166 | )}
167 |