import { useSecondaryPage } from '@/PageManager' import { toRelay } from '@/lib/link' export function EmbeddedWebsocketUrl({ url }: { url: string }) { const { push } = useSecondaryPage() return ( { e.stopPropagation() push(toRelay(url)) }} > [ {url} ] ) }