mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
verify comment author addresses
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import {useComment, useAuthorAddress} from '@plebbit/plebbit-react-hooks';
|
||||
|
||||
function VerifiedAuthor({ commentCid, children }) {
|
||||
const comment = useComment({commentCid});
|
||||
const {authorAddress, shortAuthorAddress} = useAuthorAddress({comment});
|
||||
|
||||
return children({ authorAddress, shortAuthorAddress });
|
||||
}
|
||||
|
||||
export default VerifiedAuthor;
|
||||
Reference in New Issue
Block a user