import React, { useRef } from 'react'; interface AssetUploadProps { onFileUpload: (file: File) => void; isLoading: boolean; isUploadDisabled?: boolean; } export const AssetUpload: React.FC = ({ onFileUpload, isLoading, isUploadDisabled }) => { const fileInputRef = useRef(null); const handleFileChange = (event: React.ChangeEvent) => { const file = event.target.files?.[0]; if (file) { onFileUpload(file); } }; const handleClick = () => { fileInputRef.current?.click(); }; const isDisabled = isLoading || isUploadDisabled; return (

Supports PNG, JPG, GIF, WEBP, MP4, PDF.

); };