From 1dc24d48e52f2e490f5603ceb02842586ecae533 Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Thu, 24 Jul 2025 11:06:32 +0000
Subject: (대표님) 정기평가 피드백 반영, 설계 피드백 반영, (최겸) 기술영업
 피드백 반영
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../status/gtc-documents-table-toolbar-actions.tsx | 39 ++++++++++++++++++++++
 1 file changed, 39 insertions(+)
 create mode 100644 lib/gtc-contract/status/gtc-documents-table-toolbar-actions.tsx

(limited to 'lib/gtc-contract/status/gtc-documents-table-toolbar-actions.tsx')

diff --git a/lib/gtc-contract/status/gtc-documents-table-toolbar-actions.tsx b/lib/gtc-contract/status/gtc-documents-table-toolbar-actions.tsx
new file mode 100644
index 00000000..cb52b2ed
--- /dev/null
+++ b/lib/gtc-contract/status/gtc-documents-table-toolbar-actions.tsx
@@ -0,0 +1,39 @@
+"use client"
+
+import { type Table } from "@tanstack/react-table"
+import { Download } from "lucide-react"
+
+import { exportTableToCSV } from "@/lib/export"
+import { Button } from "@/components/ui/button"
+
+import { type GtcDocumentWithRelations } from "@/db/schema/gtc"
+import { CreateGtcDocumentDialog } from "./create-gtc-document-dialog"
+
+interface GtcDocumentsTableToolbarActionsProps {
+  table: Table<GtcDocumentWithRelations>
+}
+
+export function GtcDocumentsTableToolbarActions({
+  table,
+}: GtcDocumentsTableToolbarActionsProps) {
+  return (
+    <div className="flex items-center gap-2">
+      {table.getFilteredSelectedRowModel().rows.length > 0 ? (
+        <Button
+          variant="outline"
+          size="sm"
+          onClick={() =>
+            exportTableToCSV(table, {
+              filename: "gtc-documents",
+              excludeColumns: ["select", "actions"],
+            })
+          }
+        >
+          <Download className="mr-2 size-4" aria-hidden="true" />
+          Export ({table.getFilteredSelectedRowModel().rows.length})
+        </Button>
+      ) : null}
+      <CreateGtcDocumentDialog />
+    </div>
+  )
+}
\ No newline at end of file
-- 
cgit v1.2.3

