diff options
| author | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-09-04 10:46:19 +0000 |
|---|---|---|
| committer | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-09-04 10:46:19 +0000 |
| commit | 13dc007de652ce3da2a5e85d2cdccafe2288dea9 (patch) | |
| tree | 37ed49bbb531adcb27aab93125efc249b2ce38be /lib/edp-progress/table/edp-progress-table-toolbar-actions.tsx | |
| parent | b67e36df49f067cbd5ba899f9fbcc755f38d4b4f (diff) | |
(임수민) EDP 벤더별 진척도 페이지 구현
- menu 작업
- 오류수정
Diffstat (limited to 'lib/edp-progress/table/edp-progress-table-toolbar-actions.tsx')
| -rw-r--r-- | lib/edp-progress/table/edp-progress-table-toolbar-actions.tsx | 24 |
1 files changed, 24 insertions, 0 deletions
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 ( + <div className="flex items-center gap-2"> + <Button variant="samsung" size="sm" className="inline-flex items-center gap-2" onClick={handleRefresh}> + <RefreshCw className="h-4 w-4" /> 새로고침 + </Button> + </div> + ) +} |
