import { Loader2 } from 'lucide-react'
import { Button, KeyboardShortcut } from 'ui'
interface SqlRunButtonProps {
isDisabled?: boolean
isExecuting?: boolean
hasSelection?: boolean
className?: string
onClick: () => void
}
export const SqlRunButton = ({
isDisabled = false,
isExecuting = false,
hasSelection = false,
className,
onClick,
}: SqlRunButtonProps) => {
return (
) : (
)
}
className={className}
>
{hasSelection ? 'Run selected' : 'Run'}
)
}