+ {links.map(({ id, url, left, top }) => (
+
+
+
+ ))}
+
+ );
+};
diff --git a/apps/roam/src/utils/__tests__/textLinkOverlay.test.ts b/apps/roam/src/utils/__tests__/textLinkOverlay.test.ts
new file mode 100644
index 0000000000..3e10659a8f
--- /dev/null
+++ b/apps/roam/src/utils/__tests__/textLinkOverlay.test.ts
@@ -0,0 +1,101 @@
+import { describe, expect, it } from "vitest";
+import { createTLSchema, TLShape } from "tldraw";
+import { getTextShapeLinkUrl } from "~/components/canvas/overlays/TextLinkOverlay";
+
+const makeShape = ({
+ type = "text",
+ meta = {},
+}: {
+ type?: string;
+ meta?: Record