1
1
import { type Interpolation , type Theme , css } from "@emotion/react" ;
2
- import UploadIcon from "@mui/icons-material/CloudUploadOutlined" ;
3
- import RemoveIcon from "@mui/icons-material/DeleteOutline" ;
4
- import FileIcon from "@mui/icons-material/FolderOutlined" ;
5
2
import CircularProgress from "@mui/material/CircularProgress" ;
6
3
import IconButton from "@mui/material/IconButton" ;
7
4
import { Stack } from "components/Stack/Stack" ;
8
5
import { useClickable } from "hooks/useClickable" ;
6
+ import { CloudUploadIcon , FolderIcon , TrashIcon } from "lucide-react" ;
9
7
import { type DragEvent , type FC , type ReactNode , useRef } from "react" ;
10
8
11
9
export interface FileUploadProps {
@@ -44,12 +42,12 @@ export const FileUpload: FC<FileUploadProps> = ({
44
42
alignItems = "center"
45
43
>
46
44
< Stack direction = "row" alignItems = "center" >
47
- < FileIcon />
45
+ < FolderIcon className = "size-icon-sm" />
48
46
< span > { file . name } </ span >
49
47
</ Stack >
50
48
51
49
< IconButton title = { removeLabel } size = "small" onClick = { onRemove } >
52
- < RemoveIcon />
50
+ < TrashIcon className = "size-icon-sm" />
53
51
</ IconButton >
54
52
</ Stack >
55
53
) ;
@@ -68,7 +66,7 @@ export const FileUpload: FC<FileUploadProps> = ({
68
66
{ isUploading ? (
69
67
< CircularProgress size = { 32 } />
70
68
) : (
71
- < UploadIcon css = { styles . icon } />
69
+ < CloudUploadIcon className = "size-16" />
72
70
) }
73
71
</ div >
74
72
@@ -166,10 +164,6 @@ const styles = {
166
164
justifyContent : "center" ,
167
165
} ,
168
166
169
- icon : {
170
- fontSize : 64 ,
171
- } ,
172
-
173
167
title : {
174
168
fontSize : 16 ,
175
169
lineHeight : "1" ,
0 commit comments