+ {editingAlias === model.id ? (
+
+
setEditAliasValue(e.target.value)}
+ onKeyDown={(e) => {
+ if (e.key === 'Enter') {
+ saveAlias(model.id);
+ } else if (e.key === 'Escape') {
+ cancelAliasEdit();
+ }
+ }}
+ className="alias-input"
+ placeholder="Введите название модели"
+ autoFocus
+ />
+
+
+
+
+
+ ) : (
+
+
{model.alias}
+
+
+ )}
+
+
+ Файл:
+
+ {model.filename.length > 30
+ ? `${model.filename.substring(0, 27)}...`
+ : model.filename
+ }
+
+
+
+ Размер:
+ {formatFileSize(model.size)}
+
+
+ Изменен:
+ {formatDate(model.lastModified)}
+
+