import React from 'react';
import { TableSettings } from './table-settings/table-settings';
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
export function TableToolbar({
  tableModel,
  baseColumns,
  enableSorting,
  enablePinning,
  hideSettings,
  defaultState,
  getToolBarActions,
  getToolbarRightActions,
  tableContainerWidth,
  localizationText
}) {
  return /*#__PURE__*/_jsxs("div", {
    className: "table-toolbar",
    children: [getToolBarActions && getToolBarActions(), /*#__PURE__*/_jsx("div", {
      className: "table-toolbar-separator"
    }), /*#__PURE__*/_jsxs("div", {
      className: "table-toolbar-right",
      children: [!hideSettings && /*#__PURE__*/_jsx(TableSettings, {
        tableModel: tableModel,
        baseColumns: baseColumns,
        defaultState: defaultState,
        tableContainerWidth: tableContainerWidth,
        enableSorting: enableSorting,
        enablePinning: enablePinning,
        localizationText: localizationText
      }), getToolbarRightActions && getToolbarRightActions()]
    })]
  });
}