// @ts-nocheck import React from 'react'; import { NavbarGroup, Button, Classes, NavbarDivider, Popover, PopoverInteractionKind, Position, } from '@blueprintjs/core'; import classNames from 'classnames'; import { DashboardActionsBar, Icon, FormattedMessage as T } from '@/components'; import NumberFormatDropdown from '@/components/NumberFormatDropdown'; import withInventoryValuation from './withInventoryValuation'; import withInventoryValuationActions from './withInventoryValuationActions'; import withDialogActions from '@/containers/Dialog/withDialogActions'; import { useInventoryValuationContext } from './InventoryValuationProvider'; import { compose, saveInvoke } from '@/utils'; import { InventoryValuationExportMenu } from './components'; import { DialogsName } from '@/constants/dialogs'; function InventoryValuationActionsBar({ // #withInventoryValuation isFilterDrawerOpen, // #withInventoryValuationActions toggleInventoryValuationFilterDrawer, // #withDialogActions openDialog, // #ownProps numberFormat, onNumberFormatSubmit, }) { const { refetchSheet, isLoading } = useInventoryValuationContext(); // Handles filter toggle click. const handleFilterToggleClick = () => { toggleInventoryValuationFilterDrawer(); }; // Handles re-calc button click. const handleRecalculateReport = () => { refetchSheet(); }; // Handles number format submit. const handleNumberFormatSubmit = (numberFormat) => { saveInvoke(onNumberFormatSubmit, numberFormat); }; // Handles the print button click. const handlePrintBtnClick = () => { openDialog(DialogsName.InventoryValuationPdfPreview); }; return (