blob: 55c56baba3d35dd78afc40b71225329edc5a9528 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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>
)
}
|