import React from 'react'; import { NavbarGroup, Button, Classes, NavbarDivider, Popover, PopoverInteractionKind, Position, } from '@blueprintjs/core'; import { FormattedMessage as T } from 'react-intl'; import Icon from 'components/Icon'; import DashboardActionsBar from 'components/Dashboard/DashboardActionsBar' import { If } from 'components'; import classNames from 'classnames'; import FilterDropdown from 'components/FilterDropdown'; import withGeneralLedger from './withGeneralLedger'; import withGeneralLedgerActions from './withGeneralLedgerActions'; import { compose } from 'utils'; /** * General ledger actions bar. */ function GeneralLedgerActionsBar({ // #withGeneralLedger generalLedgerSheetFilter, // #withGeneralLedgerActions toggleGeneralLedgerSheetFilter, refreshGeneralLedgerSheet }) { const filterDropdown = FilterDropdown({ fields: [], onFilterChange: (filterConditions) => { }, }); const handleFilterClick = () => { toggleGeneralLedgerSheetFilter(); }; const handleRecalcReport = () => { refreshGeneralLedgerSheet(true); }; return (