+ {nodeData.isOptional && (
+
+ Optional
+
+ )}
+ {/* Filename and duration */}
+
+
+ {nodeData.filename}
+
+
+ {nodeData.duration != null && (
+
+ {formatDuration(nodeData.duration)}
+
+ )}
+ {nodeData.dimensions && (
+
+ {nodeData.dimensions.width}x{nodeData.dimensions.height}
+
+ )}
+
+
+
+ {/* Video player */}
+
+
+
+
+ {/* Remove button */}
+
+
+ ) : (
+ fileInputRef.current?.click()}
+ onKeyDown={(e) => { if (e.key === "Enter" || e.key === " ") { e.preventDefault(); fileInputRef.current?.click(); } }}
+ onDrop={handleDrop}
+ onDragOver={handleDragOver}
+ className={`w-full h-full bg-neutral-900/40 flex flex-col items-center justify-center cursor-pointer hover:bg-neutral-800/60 transition-colors ${nodeData.isOptional ? "border-2 border-dashed border-neutral-600" : ""}`}
+ >
+
+
+ {nodeData.isOptional ? "Optional" : "Drop video or click"}
+
+
+ )}
+
+