import React from 'react'; import { FormGroup, Classes } from '@blueprintjs/core'; import { Field } from 'formik'; import { Row, Col, FormattedMessage as T, ItemsMultiSelect, } from '../../../components'; import classNames from 'classnames'; import FinancialStatementDateRange from 'containers/FinancialStatements/FinancialStatementDateRange'; import FinancialStatementsFilter from '../FinancialStatementsFilter'; import { filterItemsOptions } from '../constants'; import { PurchasesByItemsGeneralPanelProvider, usePurchaseByItemsGeneralPanelContext, } from './PurchasesByItemsGeneralPanelProvider'; /** * */ export default function PurchasesByItemsGeneralPanel() { return ( ); } /** * Purchases by items - Drawer header - General panel. */ function PurchasesByItemsGeneralPanelContent() { const { items } = usePurchaseByItemsGeneralPanelContext(); return (
} initialSelectedItem={'with-transactions'} /> {({ form: { setFieldValue } }) => ( } className={classNames('form-group--select-list', Classes.FILL)} > { const itemsIds = items.map((item) => item.id); setFieldValue('itemsIds', itemsIds); }} /> )}
); }