// @ts-nocheck import React from 'react'; import { NavbarGroup, NavbarDivider, Button, Classes, Popover, PopoverInteractionKind, Position, } from '@blueprintjs/core'; import { DashboardActionsBar,FormattedMessage as T, Icon } from '@/components'; import classNames from 'classnames'; import NumberFormatDropdown from '@/components/NumberFormatDropdown'; import { useUnrealizedGainOrLossContext } from './UnrealizedGainOrLossProvider'; import withUnrealizedGainOrLoss from './withUnrealizedGainOrLoss'; import withUnrealizedGainOrLossActions from './withUnrealizedGainOrLossActions'; import { compose, saveInvoke } from '@/utils'; /** * unrealized Gain or Loss actions bar. */ function UnrealizedGainOrLossActionsBar({ //#withRealizedGainOrLoss isFilterDrawerOpen, //#withRealizedGainOrLossActions toggleUnrealizedGainOrLossFilterDrawer, //#ownProps numberFormat, onNumberFormatSubmit, }) { // Handle filter toggle click. const handleFilterToggleClick = () => { toggleUnrealizedGainOrLossFilterDrawer(); }; // Handle recalculate report button. const handleRecalculateReport = () => {}; // handle number format form submit. const handleNumberFormatSubmit = (values) => saveInvoke(onNumberFormatSubmit, values); return (