[ABANDONED] React/Redux front end for the Flexor social network.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

24 lines
576 B

import React, { FC } from 'react'
import { MEDIA_ICON_MAX_SIZE } from '../../constants'
import FileField from './file-field'
interface Props {
name: string
label?: string
help?: string
}
const IconImageField: FC<Props> = ({ name, label = 'Icon Image', help = 'Approx 32 x 32. Max 1 MB.' }) => {
return (
<FileField
name={name}
label={label}
width={32}
height={32}
help={help}
previewWidth={32}
maxSize={MEDIA_ICON_MAX_SIZE} />
)
}
export default IconImageField