"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.TableToolbar = TableToolbar;
var _react = _interopRequireDefault(require("react"));
var _tableSettings = require("./table-settings/table-settings");
var _jsxRuntime = require("react/jsx-runtime");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
function TableToolbar({
  tableModel,
  baseColumns,
  enableSorting,
  enablePinning,
  hideSettings,
  defaultState,
  getToolBarActions,
  getToolbarRightActions,
  tableContainerWidth,
  localizationText
}) {
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
    className: "table-toolbar",
    children: [getToolBarActions && getToolBarActions(), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
      className: "table-toolbar-separator"
    }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
      className: "table-toolbar-right",
      children: [!hideSettings && /*#__PURE__*/(0, _jsxRuntime.jsx)(_tableSettings.TableSettings, {
        tableModel: tableModel,
        baseColumns: baseColumns,
        defaultState: defaultState,
        tableContainerWidth: tableContainerWidth,
        enableSorting: enableSorting,
        enablePinning: enablePinning,
        localizationText: localizationText
      }), getToolbarRightActions && getToolbarRightActions()]
    })]
  });
}