mirror of
https://github.com/supabase/supabase.git
synced 2026-10-07 18:35:07 +03:00
* Temporarily disable cmd K shortcut for searching unified logs * Update placeholder for search input * Fix getLogsCountQuery for method * Standardize pathname parameter * Fix refresh button
27 lines
588 B
TypeScript
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" />
|
|
)
|
|
}
|
|
/>
|
|
)
|
|
}
|