|
|
@@ -125,6 +125,25 @@ export function FilesTable() {
|
|
|
header: "Actions",
|
|
|
cell: ({ row }) => (
|
|
|
<div className="flex gap-2">
|
|
|
+ <button
|
|
|
+ onClick={() => handleDownload(row.original.id, row.original.filename)}
|
|
|
+ className="text-green-600 hover:text-green-800 transition-colors"
|
|
|
+ title="Download file"
|
|
|
+ >
|
|
|
+ <svg
|
|
|
+ className="w-5 h-5"
|
|
|
+ fill="none"
|
|
|
+ stroke="currentColor"
|
|
|
+ viewBox="0 0 24 24"
|
|
|
+ >
|
|
|
+ <path
|
|
|
+ strokeLinecap="round"
|
|
|
+ strokeLinejoin="round"
|
|
|
+ strokeWidth={2}
|
|
|
+ d="M12 10v6m0 0l-3-3m3 3l3-3m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"
|
|
|
+ />
|
|
|
+ </svg>
|
|
|
+ </button>
|
|
|
<button
|
|
|
onClick={() => handleDeleteFile(row.original.id, row.original.filename)}
|
|
|
className="text-red-600 hover:text-red-800 transition-colors"
|