import React from 'react'; import { useFormikContext } from 'formik'; import { Button, Classes, Intent } from '@blueprintjs/core'; import { FormattedMessage as T } from 'react-intl'; import { useExchangeRateFromContext } from './ExchangeRateFormProvider'; import withDialogActions from 'containers/Dialog/withDialogActions'; import { compose } from 'utils'; function ExchangeRateFormFooter({ // #withDialogActions closeDialog, }) { const { isSubmitting } = useFormikContext(); const { dialogName, action } = useExchangeRateFromContext(); const handleClose = () => { closeDialog(dialogName); }; return (