interface ActionButtonsProps { isUploading: boolean isSecretEmpty: boolean noDestination: boolean hasPendingOrErrors: boolean allDone: boolean hasErrors: boolean onUpload: () => void onCancel: () => void onReset: () => void } export default function ActionButtons({ isUploading, isSecretEmpty, noDestination, hasPendingOrErrors, allDone, hasErrors, onUpload, onCancel, onReset, }: ActionButtonsProps) { const cantUpload = isSecretEmpty || noDestination return (
{!isUploading && hasPendingOrErrors && ( )} {isUploading && ( )} {(allDone || hasErrors) && !isUploading && ( )}
) }