"use strict";

exports.__esModule = true;
exports.useTableFoldersSyncProps = useTableFoldersSyncProps;
var _useToolbarCollectionSyncProps = require("../ToolbarCollection/useToolbarCollectionSyncProps");
var _useColumnsSyncProps = require("../../hooks/useColumnsSyncProps");
var _useTagsBulkAssignFoldersUtils = require("../Tags/useTagsBulkAssignFoldersUtils");
function useTableFoldersSyncProps(props) {
  const {
    state,
    customColumns,
    columns
  } = props;
  const toolbar = state.toolbar;
  (0, _useToolbarCollectionSyncProps.useToolbarCollectionSyncProps)({
    ...props,
    state: toolbar,
    isUsingDragAndDrop: !!props.dragAndDrop,
    isUsingBulkActionsToolbar: !!props.bulkActionToolbar,
    isUsingHorizontalScroll: true,
    isUsingFolders: true,
    isUsingTableVirtualization: true
  });
  (0, _useColumnsSyncProps.useColumnsSyncProps)({
    toolbar,
    customColumns,
    columns
  });
  (0, _useTagsBulkAssignFoldersUtils.useTagsBulkAssignFoldersUtils)({
    state
  });
  return state;
}
//# sourceMappingURL=useTableFoldersSyncProps.js.map