import { SpinnerIcon, WarningIcon } from '@/components/ui/icons' import type { GitModelMode } from '@/lib/types' interface ActionButtonsProps { isUploading: boolean isChecking: boolean isSecretEmpty: boolean hasPendingOrErrors: boolean allDone: boolean hasErrors: boolean onUpload: (gitModelMode: GitModelMode) => void onCancel: () => void onReset: () => void } export default function ActionButtons({ isUploading, isChecking, isSecretEmpty, hasPendingOrErrors, allDone, hasErrors, onUpload, onCancel, onReset, }: ActionButtonsProps) { const cantUpload = isSecretEmpty || isChecking const isBusy = isUploading || isChecking return (
{!isBusy && hasPendingOrErrors && ( <> )} {isBusy && ( )} {(allDone || hasErrors) && !isBusy && ( )}
) }