From 1a2241c40e10193c5ff7008a7b7b36cc1d855d96 Mon Sep 17 00:00:00 2001 From: joonhoekim <26rote@gmail.com> Date: Tue, 25 Mar 2025 15:55:45 +0900 Subject: initial commit --- .../table/doc-table-toolbar-actions.tsx | 66 ++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 lib/vendor-document-list/table/doc-table-toolbar-actions.tsx (limited to 'lib/vendor-document-list/table/doc-table-toolbar-actions.tsx') diff --git a/lib/vendor-document-list/table/doc-table-toolbar-actions.tsx b/lib/vendor-document-list/table/doc-table-toolbar-actions.tsx new file mode 100644 index 00000000..a30384dd --- /dev/null +++ b/lib/vendor-document-list/table/doc-table-toolbar-actions.tsx @@ -0,0 +1,66 @@ +"use client" + +import * as React from "react" +import { type Table } from "@tanstack/react-table" +import { Download, Send, Upload } from "lucide-react" +import { toast } from "sonner" + +import { exportTableToExcel } from "@/lib/export" +import { Button } from "@/components/ui/button" +import { DocumentStagesView } from "@/db/schema/vendorDocu" +import { AddDocumentListDialog } from "./add-doc-dialog" +import { DeleteDocumentsDialog } from "./delete-docs-dialog" + + +interface DocTableToolbarActionsProps { + table: Table + projectType: "ship" | "plant"; + selectedPackageId: number +} + +export function DocTableToolbarActions({ table, projectType, selectedPackageId }: DocTableToolbarActionsProps) { + + + return ( +
+ {table.getFilteredSelectedRowModel().rows.length > 0 ? ( + row.original)} + onSuccess={() => table.toggleAllRowsSelected(false)} + /> + ) : null} + + + + + + + + + + +
+ ) +} \ No newline at end of file -- cgit v1.2.3