import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import React from 'react';
import { Table as RsTable, Column, Cell, HeaderCell, ColumnGroup } from 'rsuite-table';
import { useCustom } from '../utils';
var ReactTable = RsTable;
var Table = /*#__PURE__*/React.forwardRef(function (props, ref) {
  var localeProp = props.locale,
      rest = _objectWithoutPropertiesLoose(props, ["locale"]);

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

  return /*#__PURE__*/React.createElement(ReactTable, _extends({}, rest, {
    rtl: rtl,
    ref: ref,
    locale: locale
  }));
});
Table.Cell = Cell;
Table.Column = Column;
Table.HeaderCell = HeaderCell;
Table.ColumnGroup = ColumnGroup;
Table.displayName = 'Table';
Table.defaultProps = {
  loadAnimation: true
};
export default Table;