@snort/system-react package

This commit is contained in:
2023-06-16 20:31:33 +01:00
parent 28052e98b9
commit 939084167a
47 changed files with 334 additions and 122 deletions

View File

@ -2,12 +2,13 @@ import { useMemo } from "react";
import { Link } from "react-router-dom";
import { HexKey } from "@snort/system";
import { useUserProfile } from "Hooks/useUserProfile";
import { useUserProfile } from "@snort/system-react";
import { profileLink } from "SnortUtils";
import { getDisplayName } from "Element/ProfileImage";
import { System } from "index";
export default function Mention({ pubkey, relays }: { pubkey: HexKey; relays?: Array<string> | string }) {
const user = useUserProfile(pubkey);
const user = useUserProfile(System, pubkey);
const name = useMemo(() => {
return getDisplayName(user, pubkey);