"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var _useSize = _interopRequireDefault(require("ahooks/lib/useSize"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var COL_SIZE = {
  lg: 'lg',
  md: 'md',
  sm: 'sm'
};
var _default = exports["default"] = function _default(ref) {
  var dom = (ref === null || ref === void 0 ? void 0 : ref.current) || document.querySelector('body');
  var _ref = (0, _useSize["default"])(dom) || {},
    width = _ref.width;
  var size = COL_SIZE.lg;
  if (width >= 1370) {
    size = COL_SIZE.lg;
  } else if (width >= 992) {
    size = COL_SIZE.md;
  } else {
    size = COL_SIZE.sm;
  }
  return size;
};
//# sourceMappingURL=useColSize.js.map
