// @ts-nocheck import React, { useEffect } from 'react'; import '@/style/pages/Accounts/List.scss'; import { DashboardPageContent, DashboardContentTable } from '@/components'; import { AccountsChartProvider } from './AccountsChartProvider'; import AccountsActionsBar from './AccountsActionsBar'; import AccountsDataTable from './AccountsDataTable'; import withAccounts from '@/containers/Accounts/withAccounts'; import withAccountsTableActions from './withAccountsTableActions'; import { transformAccountsStateToQuery } from './utils'; import { compose } from '@/utils'; /** * Accounts chart list. */ function AccountsChart({ // #withAccounts accountsTableState, accountsTableStateChanged, // #withAccountsActions resetAccountsTableState, }) { // Resets the accounts table state once the page unmount. useEffect( () => () => { resetAccountsTableState(); }, [resetAccountsTableState], ); return ( ); } export default compose( withAccounts(({ accountsTableState, accountsTableStateChanged }) => ({ accountsTableState, accountsTableStateChanged, })), withAccountsTableActions, )(AccountsChart);