"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

exports.__esModule = true;
exports.default = void 0;

var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));

var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));

var _react = _interopRequireDefault(require("react"));

var _rsuiteTable = require("rsuite-table");

var _utils = require("../utils");

var ReactTable = _rsuiteTable.Table;

var Table = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
  var localeProp = props.locale,
      rest = (0, _objectWithoutPropertiesLoose2.default)(props, ["locale"]);

  var _useCustom = (0, _utils.useCustom)('Table', localeProp),
      locale = _useCustom.locale,
      rtl = _useCustom.rtl;

  return /*#__PURE__*/_react.default.createElement(ReactTable, (0, _extends2.default)({}, rest, {
    rtl: rtl,
    ref: ref,
    locale: locale
  }));
});

Table.Cell = _rsuiteTable.Cell;
Table.Column = _rsuiteTable.Column;
Table.HeaderCell = _rsuiteTable.HeaderCell;
Table.ColumnGroup = _rsuiteTable.ColumnGroup;
Table.displayName = 'Table';
Table.defaultProps = {
  loadAnimation: true
};
var _default = Table;
exports.default = _default;