From ffb8e2e99e1d0c105b1c545ff7ab4d3149ec6c48 Mon Sep 17 00:00:00 2001 From: joonhoekim <26rote@gmail.com> Date: Mon, 1 Dec 2025 15:22:38 +0900 Subject: (김준회) 서버측 where, order by 절 지원을 위한 v2 임시작업 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../client-table-v2/client-table-toolbar.tsx | 59 ++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 components/client-table-v2/client-table-toolbar.tsx (limited to 'components/client-table-v2/client-table-toolbar.tsx') diff --git a/components/client-table-v2/client-table-toolbar.tsx b/components/client-table-v2/client-table-toolbar.tsx new file mode 100644 index 00000000..089501e1 --- /dev/null +++ b/components/client-table-v2/client-table-toolbar.tsx @@ -0,0 +1,59 @@ +"use client" + +import * as React from "react" +import { Search, Download } from "lucide-react" +import { Input } from "@/components/ui/input" +import { Button } from "@/components/ui/button" + +interface ClientTableToolbarProps { + globalFilter: string + setGlobalFilter: (value: string) => void + totalRows: number + visibleRows: number + onExport?: () => void + actions?: React.ReactNode + customToolbar?: React.ReactNode + viewOptions?: React.ReactNode +} + +export function ClientTableToolbar({ + globalFilter, + setGlobalFilter, + totalRows, + visibleRows, + onExport, + actions, + customToolbar, + viewOptions, +}: ClientTableToolbarProps) { + return ( +
+
+
+ + setGlobalFilter(e.target.value)} + className="pl-8" + /> +
+
+ Showing {visibleRows} of {totalRows} +
+ {viewOptions} + {onExport && ( + + )} +
+ +
+ {customToolbar} + {actions} +
+
+ ) +} -- cgit v1.2.3