"use client" import * as React from "react" import { type Table } from "@tanstack/react-table" import { Button } from "@/components/ui/button" import { Input } from "@/components/ui/input" import { DataTableViewOptions } from "@/components/data-table/data-table-view-options" import { Plus, Download, Upload, Settings } from "lucide-react" import { type ApprovalLine } from "../service" import { CategoryManagementDialog } from "@/lib/approval-template/table/category-management-dialog" interface ApprovalLineTableToolbarActionsProps { table: Table onCreateLine: () => void } export function ApprovalLineTableToolbarActions({ table, onCreateLine, }: ApprovalLineTableToolbarActionsProps) { const [showCategoryDialog, setShowCategoryDialog] = React.useState(false) const isFiltered = table.getState().columnFilters.length > 0 return (
table.getColumn("name")?.setFilterValue(event.target.value) } className="h-8 w-[150px] lg:w-[250px]" /> {isFiltered && ( )}
{/* 카테고리 관리 버튼 */}
) }