import { isFunction as r } from "../../../../../../utils/value/is.js";
import { identity as i } from "../../../../../../utils/common.js";
const p = (e, o) => {
  const n = r(o) ? o : i;
  return Object.freeze(e.map((t) => ({ id: t, name: n(t) ?? t })));
};
export {
  p as selectionOptionsFor
};
