import React from 'react'; import classNames from 'classnames'; import { isEmpty } from 'lodash'; import { Button, NavbarGroup, Classes, NavbarDivider, Alignment, } from '@blueprintjs/core'; import { Icon, DashboardRowsHeightButton, FormattedMessage as T, } from 'components'; import DashboardActionsBar from 'components/Dashboard/DashboardActionsBar'; import { useCashFlowAccountsContext } from './CashFlowAccountsProvider'; import withDialogActions from 'containers/Dialog/withDialogActions'; import withSettings from '../../Settings/withSettings'; import withSettingsActions from '../../Settings/withSettingsActions'; import { compose } from 'utils'; /** * Cash Flow accounts actions bar. */ function CashFlowAccountsActionsBar({ // #withDialogActions openDialog, // #withSettings cashflowTableSize, // #withSettingsActions addSetting, }) { // Handle table row size change. const handleTableRowSizeChange = (size) => { addSetting('cashflowAccounts', 'tableSize', size); }; // Handle click a refresh const handleRefreshBtnClick = () => {}; // Handle add bank account. const handleAddBankAccount = () => { openDialog('account-form', {}); }; // Handle add cash account. const handleAddCashAccount = () => { openDialog('account-form', {}); }; return (