import p from "react";
const n = {
  getLabel: (e) => {
    let o = "";
    const l = (i) => {
      p.Children.map(i, (t) => {
        typeof t == "string" ? o += t : t != null && t.props && l(t == null ? void 0 : t.props.children);
      });
    };
    return l(e), o;
  },
  copyStyles: (e) => ({
    fontSize: window.getComputedStyle(e).getPropertyValue("font-size"),
    lineHeight: window.getComputedStyle(e).getPropertyValue("line-height"),
    letterSpacing: window.getComputedStyle(e).getPropertyValue("letter-spacing"),
    minWidth: window.getComputedStyle(e).getPropertyValue("width"),
    fontWeight: window.getComputedStyle(e).getPropertyValue("font-weight")
  })
};
export {
  n as EditableTextHelper
};
//# sourceMappingURL=helper.es.es.js.map
