mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 05:28:59 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			442 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			442 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
interface FormFileUploadProps {
 | 
						|
    onChange: (files: FileList | null) => void;
 | 
						|
    multiple?: boolean;
 | 
						|
}
 | 
						|
 | 
						|
export default function FormFileUpload({ onChange, multiple }: FormFileUploadProps) {
 | 
						|
    return (
 | 
						|
        <label class="tn-file-input tn-input-field">
 | 
						|
            <input type="file" class="form-control-file" multiple={multiple}
 | 
						|
                onChange={e => onChange((e.target as HTMLInputElement).files)} />
 | 
						|
        </label>
 | 
						|
    )
 | 
						|
} |