Files
supabase/apps/studio/components/ui/DataTable/RefreshButton.tsx
T
Joshen Lim 307f2843e1 Chore/unified logs fixes 02 (#36710)
* Temporarily disable cmd K shortcut for searching unified logs

* Update placeholder for search input

* Fix getLogsCountQuery for method

* Standardize pathname parameter

* Fix refresh button
2025-06-27 18:58:50 +08:00

27 lines
588 B
TypeScript

import { LoaderCircle, RefreshCcw } from 'lucide-react'
import { Button } from 'ui'
interface RefreshButtonProps {
isLoading: boolean
onRefresh: () => void
}
export const RefreshButton = ({ isLoading, onRefresh }: RefreshButtonProps) => {
return (
<Button
size="tiny"
type="outline"
disabled={isLoading}
onClick={onRefresh}
className="w-[26px]"
icon={
isLoading ? (
<LoaderCircle className="text-foreground animate-spin" />
) : (
<RefreshCcw className="text-foreground" />
)
}
/>
)
}