"use client"; import * as React from "react"; import { type Table } from "@tanstack/react-table"; import { Download, Plus } from "lucide-react"; import { exportTableToExcel } from "@/lib/export"; import { Button } from "@/components/ui/button"; import { DeleteIntegrationDialog } from "./delete-integration-dialog"; import { IntegrationAddDialog } from "./integration-add-dialog"; import { integrationTable } from "@/db/schema/integration"; interface IntegrationTableToolbarActionsProps { table: Table; onSuccess?: () => void; } export function IntegrationTableToolbarActions({ table, onSuccess, }: IntegrationTableToolbarActionsProps) { const selectedRows = table.getFilteredSelectedRowModel().rows.map((row) => row.original); return (
{selectedRows.length > 0 && ( { table.toggleAllRowsSelected(false); onSuccess?.(); }} /> )} {/** 3) Export 버튼 */}
); }