import { Decoration_Type } from "./../../ricos-types/index.js";
const getUrlLinkData = (content) => {
  if (Array.isArray(content)) {
    const node = content.find((node2) => node2.type.name === "text");
    if (node?.marks.some((mark) => mark.type.name === Decoration_Type.LINK)) {
      return node.marks[0].attrs.link;
    }
  }
  return false;
};
export {
  getUrlLinkData
};
//# sourceMappingURL=get-url-link-data.js.map
