import { TOKEN_ITEM_HEIGHT as n, LIST_SECTION_HEADER_HEIGHT as r } from "../constants.js";
const T = (t) => t.reduce(
  (e, o) => e + (o.tokens?.length ?? 0),
  0
), E = (t) => {
  const e = T(t);
  return e ? e * n + t.filter((o) => !!o.label).length * r : n * 2;
};
export {
  E as getListTotalHeight
};
//# sourceMappingURL=getListTotalHeight.js.map
