components.controls.ImageUploader.ImageUploaderList.tsx Maven / Gradle / Ivy
import React, { CSSProperties } from 'react'
import map from 'lodash/map'
import { ImageUploaderItem, type File } from './ImageUploaderItem'
export interface Props {
files: File[]
onRemove(index: number, id: string): void
uploading: Record
showTooltip?: boolean
canDelete?: boolean
statusBarColor?: string
autoUpload?: boolean
showSize?: boolean
showName?: boolean
lightBox?: boolean
disabled?: boolean
listType?: 'card' | 'image'
customUploaderSize?: CSSProperties
shape?: 'circle' | 'square'
}
export const ImageUploaderList = ({
files,
onRemove,
uploading,
showTooltip,
canDelete,
...rest
}: Props) => {
return (
<>
{map(files, (file, index) => (
))}
>
)
}
export default ImageUploaderList
© 2015 - 2025 Weber Informatics LLC | Privacy Policy