import { jsx as r, Fragment as e } from "@emotion/react/jsx-runtime";
import { DATAGRID_SEMANTIC_WIDTHS as i, DATAGRID_ACTIONS_COLUMN_KEY as n } from "../../../../constants.js";
import { useDataGrid as a } from "../../../../hooks/shared/useDataGrid/useDataGrid.js";
import { MenuActions as m } from "../../../../../MenuActions/MenuActions.js";
function s(o) {
  const { rowActionsGetter: t } = a();
  return t === void 0 ? /* @__PURE__ */ r(e, {}) : /* @__PURE__ */ r(
    m,
    {
      arrowType: "top-left",
      objItem: o.row,
      menuActions: t,
      marginTop: 1,
      marginLeft: "-11px",
      anchorOrigin: { vertical: "bottom", horizontal: "left" },
      transformOrigin: { vertical: "top", horizontal: "left" }
    }
  );
}
const A = {
  key: n,
  name: "",
  width: i.actions,
  minWidth: 32,
  isDraggable: !1,
  withFilter: !1,
  resizable: !0,
  sortable: !1,
  frozen: !0,
  type: "custom",
  renderCell: s
};
export {
  A as ActionsColumn
};
