You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
456 B
18 lines
456 B
import { useSecondaryPage } from '@/PageManager' |
|
import { toRelay } from '@/lib/link' |
|
|
|
export function EmbeddedWebsocketUrl({ url }: { url: string }) { |
|
const { push } = useSecondaryPage() |
|
return ( |
|
<span |
|
className="cursor-pointer px-1 text-primary hover:bg-primary/20" |
|
onClick={(e) => { |
|
e.stopPropagation() |
|
push(toRelay(url)) |
|
}} |
|
> |
|
[ {url} ] |
|
<span className="w-2 h-1 bg-primary" /> |
|
</span> |
|
) |
|
}
|
|
|