setActiveLibId(lib.id)}
>
-
- {uploading ? : }
-
-
- {uploading
- ? "正在上传,请稍候..."
- : "点击或拖拽文件到此区域上传"}
-
-
- 支持 {kindLabel[currentLib?.kind || "video"]}{" "}
- 格式文件,单文件不超过 2GB
-
-
- )}
-
- {/* 素材列表 */}
- {assetsLoading ? (
-
-
-
- ) : assets.length === 0 ? (
-
- ) : (
-
- {assets.map((asset) => (
-
-
- ) : (
-
- {currentLib?.kind === "video" ? (
-
- ) : (
-
- )}
-
- )
- }
- actions={[
- deleteMutation.mutate(asset.id)}
- >
-
- ,
- ]}
+
+
+ {kindIcon(lib.kind)} {lib.name}
+
+
{
+ e?.stopPropagation();
+ handleDeleteLibrary(lib.id);
+ }}
+ onCancel={(e) => e?.stopPropagation()}
+ okText="删除"
+ cancelText="取消"
+ >
+
+
+
+
+ {kindLabel(lib.kind)} · {lib.count} 个素材
+
+