import { useCallback as t } from "react";
import { saveViewConfig as e } from "../../helpers/persistence/saveViewConfig/saveViewConfig.js";
import { getViewSuffix as f } from "../../helpers/shared/getViewSuffix/getViewSuffix.js";
const l = ({
  id: o,
  onChangeConfig: n,
  updateConfigColumns: r
}) => ({
  onChangeColumnsConfig: t(
    (m, s) => {
      e(
        o,
        f(m),
        s,
        n
      ), r(m, s);
    },
    [o, n, r]
  )
});
export {
  l as useChangeColumnsConfig
};
