import React, { useRef } from 'react' export default function FormFile({ label, onChange, error, preview, inputRef = useRef(), }) { return (
{label !== '' && ( )} {preview && preview} {error && (

{error}

)}
) }