// 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); }