import React from 'react'; import { Button, NavbarGroup, Classes, Intent } from '@blueprintjs/core'; import { useRefundCreditNoteDrawerContext } from './RefundCreditNoteDrawerProvider'; import withAlertsActions from 'containers/Alert/withAlertActions'; import { Icon, DrawerActionsBar, FormattedMessage as T, Can } from 'components'; import { CreditNoteAction, AbilitySubject, } from '../../../common/abilityOption'; import { compose } from 'utils'; /** * Refund credit note actions bar. */ function RefundCreditNoteDetailActionsBar({ // #withAlertsActions openAlert, }) { const { refundTransactionId } = useRefundCreditNoteDrawerContext(); // Handle delete refund credit. const handleDeleteRefundCreditNote = () => { openAlert('refund-credit-delete', { creditNoteId: refundTransactionId }); }; return (