~ knotless Search/
↑↓ move↵ open⇧↵ all results

chadtmiller.com/hud

A remote MCP server that shows atproto records as interactive UI inside MCP Apps hosts

0
0
8 lines · 340 B Raw History
// How an embed's links open: through the app, when it says how.

/** Open a page through the app when it says how: a click on a link. */
export function follow(context: { readonly onopenlink?: (url: string) => void }, event: MouseEvent, url: string) {
	if (!context.onopenlink) return;
	event.preventDefault();
	context.onopenlink(url);
}