import { jsx as t } from "@emotion/react/jsx-runtime";
import { useModuleDictionary as a } from "@m4l/core";
import { SettingsConfigOutlined as m } from "@m4l/icons";
import { IconButton as l } from "../../../../../extended/mui/IconButton/IconButton.js";
import { useDataGrid as c } from "../../../../hooks/shared/useDataGrid/useDataGrid.js";
import { useModalSettings as d } from "./hooks/useModalSettings/useModalSettings.js";
function C(o) {
  const { columns: i } = o, { size: n } = c(), s = d(n, i), { getLabel: e } = a(), r = () => {
    s();
  };
  return /* @__PURE__ */ t(
    l,
    {
      tooltip: e("data_grid.tooltip_settings"),
      onClick: r,
      "aria-label": "settings",
      icon: /* @__PURE__ */ t(m, {}),
      "data-testid": "settings-button"
    }
  );
}
export {
  C as Settings
};
