{
label: string;
theme: SubstraitVizTheme;
onAdd: (file: DroppedFile) => void;
}
export function FileCardAdd({
className = '',
label,
theme,
onAdd,
...props
}: FileCardAddProps) {
const {
dragState,
handleDragOver,
handleDragLeave,
handleDrop,
triggerFileInput,
fileInputRef,
handleFileSelect,
} = useFileDrop(onAdd);
return (
{dragState === 'dragging' ? (
'Drop to add'
) : (
+ {label}
)}
);
}