var __rest = (this && this.__rest) || function (s, e) {
    var t = {};
    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
        t[p] = s[p];
    if (s != null && typeof Object.getOwnPropertySymbols === "function")
        for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
            if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
                t[p[i]] = s[p[i]];
        }
    return t;
};
import React, { forwardRef } from "react";
import { cl } from "../../../utils/helpers/index.js";
import DataToolbarButton from "../button/DataToolbarButton.js";
import { DataToolbarSearchField, } from "../search-field/DataToolbarSearchField.js";
import DataToolbarToggleButton from "../toggle-button/DataToolbarToggleButton.js";
const DataToolbar = forwardRef((_a, forwardedRef) => {
    var { className, renderInput, renderPreferences, renderPagination } = _a, rest = __rest(_a, ["className", "renderInput", "renderPreferences", "renderPagination"]);
    return (React.createElement("div", Object.assign({ ref: forwardedRef }, rest, { className: cl("aksel-data-toolbar", className), role: "toolbar" }),
        renderInput && (React.createElement("div", { className: "aksel-data-toolbar__input" }, renderInput)),
        React.createElement("div", { className: "aksel-data-toolbar__actions" },
            renderPagination && (React.createElement("div", { className: "aksel-data-toolbar__pagination" }, renderPagination)),
            renderPreferences && (React.createElement("div", { className: "aksel-data-toolbar__preferences" }, renderPreferences)))));
});
DataToolbar.Button = DataToolbarButton;
export { DataToolbar, DataToolbarButton, DataToolbarSearchField, DataToolbarToggleButton, };
export default DataToolbar;
//# sourceMappingURL=DataToolbarRoot.js.map