* feat: add file manager module - Complete file manager implementation with UI/UX - Add drive management functionality - Add file upload/download with progress tracking - Add stamp integration and handling - Add bulk operations and context menus Co-authored-by: Roland Seres <roland.seres90@gmail.com> Co-authored-by: nidishk <nidishkrishnan45@gmail.com>
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import { ReactElement } from 'react'
|
||||
import ImageIcon from 'remixicon-react/Image2LineIcon'
|
||||
import FileIcon from 'remixicon-react/FileTextLineIcon'
|
||||
|
||||
interface ContextMenuProps {
|
||||
icon: string
|
||||
size?: string
|
||||
color?: string
|
||||
}
|
||||
|
||||
export function GetIconElement({ icon, size = '21px', color = '#ed8131' }: ContextMenuProps): ReactElement {
|
||||
switch (icon) {
|
||||
case 'image':
|
||||
return <ImageIcon size={size} color={color} />
|
||||
default:
|
||||
return <FileIcon size={size} color={color} />
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user