import * as React from 'react';
import noop from 'lodash/noop';
import { PageHeader } from '@box/blueprint-web';
import SubHeaderLeft from './SubHeaderLeft';
import SubHeaderRight from './SubHeaderRight';
import { VIEW_MODE_LIST } from '../../../constants';
import './SubHeader.scss';
const SubHeader = ({
  canCreateNewFolder,
  canUpload,
  currentCollection,
  gridColumnCount = 0,
  gridMaxColumns = 0,
  gridMinColumns = 0,
  maxGridColumnCountForWidth = 0,
  onGridViewSliderChange = noop,
  isSmall,
  onCreate,
  onItemClick,
  onSortChange,
  onUpload,
  onViewModeChange,
  portalElement,
  rootId,
  rootName,
  view,
  viewMode = VIEW_MODE_LIST
}) => /*#__PURE__*/React.createElement(PageHeader.Root, {
  className: "be-sub-header",
  "data-testid": "be-sub-header",
  variant: "inline"
}, /*#__PURE__*/React.createElement(PageHeader.StartElements, null, /*#__PURE__*/React.createElement(SubHeaderLeft, {
  currentCollection: currentCollection,
  isSmall: isSmall,
  onItemClick: onItemClick,
  portalElement: portalElement,
  rootId: rootId,
  rootName: rootName,
  view: view
})), /*#__PURE__*/React.createElement(PageHeader.EndElements, null, /*#__PURE__*/React.createElement(SubHeaderRight, {
  canCreateNewFolder: canCreateNewFolder,
  canUpload: canUpload,
  currentCollection: currentCollection,
  gridColumnCount: gridColumnCount,
  gridMaxColumns: gridMaxColumns,
  gridMinColumns: gridMinColumns,
  maxGridColumnCountForWidth: maxGridColumnCountForWidth,
  onCreate: onCreate,
  onGridViewSliderChange: onGridViewSliderChange,
  onSortChange: onSortChange,
  onUpload: onUpload,
  onViewModeChange: onViewModeChange,
  portalElement: portalElement,
  view: view,
  viewMode: viewMode
})));
export default SubHeader;
//# sourceMappingURL=SubHeader.js.map