minor fixes
This commit is contained in:
11
src/app/note/components/mentions/user.tsx
Normal file
11
src/app/note/components/mentions/user.tsx
Normal file
@@ -0,0 +1,11 @@
|
||||
import { useProfile } from '@lume/utils/hooks/useProfile';
|
||||
import { shortenKey } from '@lume/utils/shortenKey';
|
||||
|
||||
export const MentionUser = (props: { children: any[] }) => {
|
||||
const pubkey = props.children[0];
|
||||
const { user } = useProfile(pubkey);
|
||||
|
||||
return (
|
||||
<span className="cursor-pointer text-fuchsia-500">@{user?.name || user?.display_name || shortenKey(pubkey)}</span>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user