import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import Button from '../../../../components/ui/button'; export default function ConfirmationFooter({ onSubmit, onCancel, submitText, cancelText, loadingText, alerts, loading, submitAlerts, }) { return (
{alerts} {submitAlerts}
{onCancel ? ( ) : null}
); } ConfirmationFooter.propTypes = { alerts: PropTypes.node, onCancel: PropTypes.func, cancelText: PropTypes.string, onSubmit: PropTypes.func.isRequired, submitText: PropTypes.string.isRequired, loadingText: PropTypes.string, loading: PropTypes.bool, submitAlerts: PropTypes.node, };