import * as r from "react";
import { renderColumnTitle as o } from "../util.mjs";
function i(l, t) {
  return l.map((n) => {
    const e = Object.assign({}, n);
    return e.title = o(n.title, t), "children" in e && (e.children = i(e.children, t)), e;
  });
}
function f(l) {
  return [r.useCallback((n) => i(n, l), [l])];
}
export {
  f as default
};
