import React, { useState, useMemo, useEffect, useCallback } from 'react'; import { Button, Intent, Position, Tooltip } from '@blueprintjs/core'; import { FormattedMessage as T, useIntl } from 'react-intl'; import { omit } from 'lodash'; import DataTable from 'components/DataTable'; import Icon from 'components/Icon'; import { Hint } from 'components'; import { compose, formattedAmount, transformUpdatedRows } from 'utils'; import { AccountsListFieldCell, MoneyFieldCell, InputGroupCell, } from 'components/DataTableCells'; import withAccounts from 'containers/Accounts/withAccounts'; const ExpenseCategoryHeaderCell = () => { return ( <> ); }; // Actions cell renderer. const ActionsCellRenderer = ({ row: { index }, column: { id }, cell: { value: initialValue }, data, payload, }) => { if (data.length <= index + 1) { return ''; } const onClickRemoveRole = () => { payload.removeRow(index); }; return ( } position={Position.LEFT}> ); } export default compose( withAccounts(({ accountsList }) => ({ accountsList, })), )(ExpenseTable);