import clsx from 'clsx' import React from 'react' import { Row } from './layout/row' import { ConfirmationButton } from './confirmation-button' import { ExclamationIcon } from '@heroicons/react/solid' export function WarningConfirmationButton(props: { warning?: string onSubmit: () => void disabled?: boolean isSubmitting: boolean openModalButtonClass?: string submitButtonClassName?: string }) { const { onSubmit, warning, disabled, isSubmitting, openModalButtonClass, submitButtonClassName, } = props if (!warning) { return ( ) } return (

{warning}

) }