From 44794a8628997c0d979adb5bd6711cd848b3e397 Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Wed, 9 Jul 2025 06:27:10 +0000
Subject: (최겸) 기술영업 판교 미팅 이전 rfq-tech 삭제
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 lib/cbe-tech/table/cbe-table-toolbar-actions.tsx | 72 ------------------------
 1 file changed, 72 deletions(-)
 delete mode 100644 lib/cbe-tech/table/cbe-table-toolbar-actions.tsx

(limited to 'lib/cbe-tech/table/cbe-table-toolbar-actions.tsx')

diff --git a/lib/cbe-tech/table/cbe-table-toolbar-actions.tsx b/lib/cbe-tech/table/cbe-table-toolbar-actions.tsx
deleted file mode 100644
index 44a79b37..00000000
--- a/lib/cbe-tech/table/cbe-table-toolbar-actions.tsx
+++ /dev/null
@@ -1,72 +0,0 @@
-"use client"
-
-import * as React from "react"
-import { type Table } from "@tanstack/react-table"
-import { Download, Upload } from "lucide-react"
-import { toast } from "sonner"
-
-import { exportTableToExcel } from "@/lib/export"
-import { Button } from "@/components/ui/button"
-
-
-import { VendorWithCbeFields } from "@/config/vendorCbeColumnsConfig"
-import { InviteVendorsDialog } from "@/lib/rfqs-tech/cbe-table/invite-vendors-dialog"
-
-interface VendorsTableToolbarActionsProps {
-  table: Table<VendorWithCbeFields>
-  rfqId: number
-}
-
-export function VendorsTableToolbarActions({ table, rfqId }: VendorsTableToolbarActionsProps) {
-  // 파일 input을 숨기고, 버튼 클릭 시 참조해 클릭하는 방식
-  const fileInputRef = React.useRef<HTMLInputElement>(null)
-
-  // 파일이 선택되었을 때 처리
-
-  function handleImportClick() {
-    // 숨겨진 <input type="file" /> 요소를 클릭
-    fileInputRef.current?.click()
-  }
-
-  const uniqueRfqIds = table.getFilteredSelectedRowModel().rows.length > 0 
-  ? [...new Set(table.getFilteredSelectedRowModel().rows.map(row => row.original.rfqId))]
-  : [];
-
-const hasMultipleRfqIds = uniqueRfqIds.length > 1;
-
-const invitationPossibeVendors = React.useMemo(() => {
-  return table
-    .getFilteredSelectedRowModel()
-    .rows
-    .map(row => row.original)
-    .filter(vendor => vendor.commercialResponseStatus === null);
-}, [table.getFilteredSelectedRowModel().rows]);
-
-return (
-  <div className="flex items-center gap-2">
-    {invitationPossibeVendors.length > 0 && (
-      <InviteVendorsDialog
-        vendors={invitationPossibeVendors}
-        rfqId={rfqId}
-        onSuccess={() => table.toggleAllRowsSelected(false)}
-        showTrigger={true}
-      />
-    )}
-
-      <Button
-        variant="outline"
-        size="sm"
-        onClick={() =>
-          exportTableToExcel(table, {
-            filename: "tasks",
-            excludeColumns: ["select", "actions"],
-          })
-        }
-        className="gap-2"
-      >
-        <Download className="size-4" aria-hidden="true" />
-        <span className="hidden sm:inline">Export</span>
-      </Button>
-    </div>
-  )
-}
\ No newline at end of file
-- 
cgit v1.2.3

