import React, { useCallback, useMemo, useState } from 'react'; import { NavbarGroup, NavbarDivider, Button, Classes, Intent, Popover, Position, PopoverInteractionKind, } from '@blueprintjs/core'; import { FormattedMessage as T } from 'react-intl'; import classNames from 'classnames'; import { If, Icon } from 'components'; import DashboardActionsBar from 'components/Dashboard/DashboardActionsBar'; import withDialogActions from 'containers/Dialog/withDialogActions'; import withDashboardActions from 'containers/Dashboard/withDashboardActions'; import withItemCategories from './withItemCategories'; import withItemCategoriesActions from './withItemCategoriesActions'; import withAlertActions from 'containers/Alert/withAlertActions'; import { compose } from 'utils'; const ItemsCategoryActionsBar = ({ // #withDialog openDialog, // #withItemCategories itemCategoriesSelectedRows, // #withAlertActions openAlert, }) => { const [filterCount, setFilterCount] = useState(0); const onClickNewCategory = useCallback(() => { openDialog('item-category-form', {}); }, [openDialog]); const handelBulkDelete = () => { openAlert('item-categories-bulk-delete', { itemCategoriesIds: itemCategoriesSelectedRows, }); }; console.log(itemCategoriesSelectedRows, 'EE'); return (