feat: render nostr mentions in chat
This commit is contained in:
@ -1,7 +1,22 @@
|
||||
import { Icon } from "element/icon";
|
||||
|
||||
export function ExternalIconLink({ size = 32, href, ...rest }) {
|
||||
return (
|
||||
<span style={{ cursor: "pointer" }}>
|
||||
<Icon
|
||||
name="link"
|
||||
size={size}
|
||||
onClick={() => window.open(href, "_blank")}
|
||||
{...rest}
|
||||
/>
|
||||
</span>
|
||||
);
|
||||
}
|
||||
|
||||
export function ExternalLink({ children, href }) {
|
||||
return (
|
||||
<a href={href} rel="noopener noreferrer" target="_blank">
|
||||
{children}
|
||||
</a>
|
||||
)
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user