[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.
 
 

16 lines
473 B

import React, { FC } from 'react'
import { useConfig } from 'src/hooks'
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.' }) => {
const config = useConfig()
return <FileField name={name} label={label} help={help} previewWidth={32} maxSize={config.media.iconMaxSize} />
}
export default IconImageField