"use strict";

exports.__esModule = true;
exports.useCollectionToolbarSyncedProps = useCollectionToolbarSyncedProps;
var _bexCore = require("@wix/bex-core");
var _mobx = require("mobx");
var _react = require("react");
function useCollectionToolbarSyncedProps(props) {
  const {
    state,
    left,
    viewsToolbarItem
  } = props;
  const syncedProps = (0, _bexCore.useSyncProps)({
    useResponsiveLayout: !left && !!viewsToolbarItem
  }, {
    useResponsiveLayout: _mobx.observable.ref
  });
  (0, _react.useState)(() => {
    state._syncedProps = syncedProps;
  });
  return syncedProps;
}
//# sourceMappingURL=useCollectionToolbarSyncedProps.js.map