From 39fc95095ac4b99186294f21fe6d8ac0cfab1f6e Mon Sep 17 00:00:00 2001
From: joonhoekim <26rote@gmail.com>
Date: Fri, 24 Oct 2025 18:55:27 +0900
Subject: (김준회) 리비전, 파일 조회는 dialog 로 분리(옥프로 요청)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 lib/swp/table/swp-table-columns.tsx | 32 +++++++++++++++++++++++---------
 1 file changed, 23 insertions(+), 9 deletions(-)

(limited to 'lib/swp/table/swp-table-columns.tsx')

diff --git a/lib/swp/table/swp-table-columns.tsx b/lib/swp/table/swp-table-columns.tsx
index f79a7441..b18e2b27 100644
--- a/lib/swp/table/swp-table-columns.tsx
+++ b/lib/swp/table/swp-table-columns.tsx
@@ -3,7 +3,7 @@
 import { ColumnDef } from "@tanstack/react-table";
 import { Badge } from "@/components/ui/badge";
 import { Button } from "@/components/ui/button";
-import { ChevronDown, ChevronRight, FileIcon } from "lucide-react";
+import { ChevronDown, ChevronRight, FileIcon, Download } from "lucide-react";
 import { formatDistanceToNow } from "date-fns";
 import { ko } from "date-fns/locale";
 import type { SwpDocumentWithStats } from "../actions";
@@ -12,20 +12,16 @@ export const swpDocumentColumns: ColumnDef<SwpDocumentWithStats>[] = [
   {
     id: "expander",
     header: () => null,
-    cell: ({ row }) => {
-      return row.getCanExpand() ? (
+    cell: () => {
+      return (
         <Button
           variant="ghost"
           size="sm"
           className="h-8 w-8 p-0"
         >
-          {row.getIsExpanded() ? (
-            <ChevronDown className="h-4 w-4" />
-          ) : (
-            <ChevronRight className="h-4 w-4" />
-          )}
+          <ChevronRight className="h-4 w-4" />
         </Button>
-      ) : null;
+      );
     },
     size: 50,
   },
@@ -388,5 +384,23 @@ export const swpFileColumns: ColumnDef<FileRow>[] = [
     ),
     size: 100,
   },
+  {
+    id: "actions",
+    header: "작업",
+    cell: ({ row }) => (
+      <Button
+        variant="outline"
+        size="sm"
+        onClick={() => {
+          // TODO: 파일 다운로드 로직 구현
+          console.log("Download file:", row.original.FILE_NM);
+        }}
+      >
+        <Download className="h-4 w-4 mr-1" />
+        다운로드
+      </Button>
+    ),
+    size: 120,
+  },
 ];
 
-- 
cgit v1.2.3

