import React from 'react'; import { FinancialStatement } from 'components'; import DashboardPageContent from 'components/Dashboard/DashboardPageContent'; import RealizedGainOrLossHeader from './RealizedGainOrLossHeader'; import RealizedGainOrLossActionsBar from './RealizedGainOrLossActionsBar'; import { RealizedGainOrLossLoadingBar } from './components'; import { RealizedGainOrLossProvider } from './RealizedGainOrLossProvider'; import withCurrentOrganization from '../../Organization/withCurrentOrganization'; import withRealizedGainOrLossActions from './withRealizedGainOrLossActions'; import { compose } from 'utils'; /** * Realized Gain or Loss. */ function RealizedGainOrLoss({ // #withPreferences organizationName, //#withRealizedGainOrLossActions toggleRealizedGainOrLossFilterDrawer, }) { // Handle refetch realized Gain or Loss after filter change. const handleFilterSubmit = (filter) => {}; React.useEffect( () => () => { toggleRealizedGainOrLossFilterDrawer(false); }, [toggleRealizedGainOrLossFilterDrawer], ); return ( ); } export default compose( withCurrentOrganization(({ organization }) => ({ organizationName: organization.name, })), withRealizedGainOrLossActions, )(RealizedGainOrLoss);