import { useMemo as m } from "react";
import { SELECTION_COLUMN_ID as r, ACTION_COLUMN_ID as C } from "../../../constants/tableDefaults.js";
function g(u) {
  const { columnId: n, colIndex: e, cellsLength: s, hasColumnSeparator: i, columnSizingId: t, getCanResize: l } = u;
  return m(() => {
    const o = e === s - 1, c = l() && !o;
    return {
      isLastColumn: o,
      canResize: c,
      isBorderVisible: i && !c && !o,
      isResizing: n === t,
      isSelectionColumn: n === r,
      isActionColumn: n === C
    };
  }, [n, e, s, i, t, l]);
}
export {
  g as default
};
//# sourceMappingURL=useCellStateFlags.js.map
