import { useEditor, useValue } from "@cmpd/editor";
function useHasLinkShapeSelected() {
  const editor = useEditor();
  return useValue(
    "hasLinkShapeSelected",
    () => {
      const selectedShapes = editor.getSelectedShapes();
      return selectedShapes.length === 1 && "url" in selectedShapes[0].props && selectedShapes[0].type !== "embed";
    },
    [editor]
  );
}
export {
  useHasLinkShapeSelected
};
//# sourceMappingURL=useHasLinkShapeSelected.mjs.map
