import { Node_Type } from "./../../ricos-schema/legacy/wix/rich_content/v1/index.js";
const headingMap = {
  1: "header-one",
  2: "header-two",
  3: "header-three",
  4: "header-four",
  5: "header-five",
  6: "header-six"
};
const getHeadingInSelection = (content, _services, _editor) => {
  if (Array.isArray(content) && content.length > 0) {
    const headingLevel = content.find((node) => node.type.name === Node_Type.HEADING)?.attrs?.level;
    if (!headingLevel || content[0].type.name === Node_Type.PARAGRAPH) {
      return "unstyled";
    }
    return headingMap[headingLevel];
  }
  return void 0;
};
export {
  getHeadingInSelection
};
//# sourceMappingURL=get-heading-in-selection.js.map
