From 13dc007de652ce3da2a5e85d2cdccafe2288dea9 Mon Sep 17 00:00:00 2001 From: dujinkim Date: Thu, 4 Sep 2025 10:46:19 +0000 Subject: (임수민) EDP 벤더별 진척도 페이지 구현 - menu 작업 - 오류수정 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../table/edp-progress-table-toolbar-actions.tsx | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 lib/edp-progress/table/edp-progress-table-toolbar-actions.tsx (limited to 'lib/edp-progress/table/edp-progress-table-toolbar-actions.tsx') diff --git a/lib/edp-progress/table/edp-progress-table-toolbar-actions.tsx b/lib/edp-progress/table/edp-progress-table-toolbar-actions.tsx new file mode 100644 index 00000000..55c56bab --- /dev/null +++ b/lib/edp-progress/table/edp-progress-table-toolbar-actions.tsx @@ -0,0 +1,24 @@ +"use client" + +import * as React from "react" +import { Button } from "@/components/ui/button" +import { RefreshCw } from "lucide-react" + +interface Props { + onRefresh?: () => void +} + +export function EDPProgressTableToolbarActions({ onRefresh }: Props) { + const handleRefresh = React.useCallback(() => { + if (onRefresh) return onRefresh() + if (typeof window !== "undefined") window.location.reload() + }, [onRefresh]) + + return ( +
+ +
+ ) +} -- cgit v1.2.3